Warning: session_start(): open(/var/lib/php/sessions/sess_cn0mqno7vbta79i6tj9a0t3pea, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
// unsigned values only
sclass VariableSizeUIntForBitHead is BitIO {
// How many bits are written at once
settable int chunkSize = 3;
settable int value;
gettable int bitCount;
public void readWrite(BitHead head) {
if (head.writeMode()) {
bitCount = max(1, numberOfBits(value));
int value = this.value;
head.writePartialByte(value, chunkSize);
value >>>= chunkSize;
while (value != 0) {
head.writeBit(1);
head.writePartialByte(value, chunkSize);
value >>>= chunkSize;
}
head.writeBit(0);
}
if (head.readMode()) {
int value = head.readPartialByte(chunkSize);
int shift = 0;
while (!head.isEOF() && head.readBit())
value |= head.readPartialByte(chunkSize) << (shift += 3);
ret value;
}
}
}