Don't dump compact length values because they seem duplicate given that they're composed of integer(s).
This commit is contained in:
@@ -107,12 +107,10 @@ class UhkBuffer {
|
||||
if (length === UhkBuffer.longCompactLengthPrefix) {
|
||||
length += this.readUInt8() << 8;
|
||||
}
|
||||
this.dump(`cl(${length})`);
|
||||
return length;
|
||||
}
|
||||
|
||||
writeCompactLength(length: number) {
|
||||
this.dump(`cl(${length})`);
|
||||
if (length >= UhkBuffer.longCompactLengthPrefix) {
|
||||
this.writeUInt8(UhkBuffer.longCompactLengthPrefix);
|
||||
this.writeUInt16(length);
|
||||
|
||||
Reference in New Issue
Block a user