1 class TableStatus extends Entry{
2 constructor(slot,_maxslots){
4 this.maxslots = _maxslots;
9 static decode(slot,bb){
10 //bb is an object of the type bytebuffer See main.js file and its require section
12 if(!(bb instanceof ByteBuffer && slot instanceof Slot)){
13 throw new Error('Argument Error: bb is not an instanceof Bytebuffer');
15 this.maxslots = bb.readByte();
16 return new TableStatus(slot,this.maxslots);
19 bb.writeByte(Entry.TypeTableStatus);
20 bb.writeInt8(this.maxslots);
26 return Entry.TypeTableStatus;
29 if(!(s instanceof Slot)){
30 throw new Error('Argument Error: s is not an instanceof Slot');
32 return new TableStatus(s,this.maxslots);