Don't dump compact length values because they seem duplicate given that they're composed of integer(s).

This commit is contained in:
László Monda
2016-04-07 02:39:19 +02:00
parent b812753e06
commit 9645d70df8

View File

@@ -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);