Fix method name.
This commit is contained in:
@@ -50,7 +50,7 @@ abstract class Serializable<T> {
|
|||||||
toBinary(buffer: UhkBuffer): void {
|
toBinary(buffer: UhkBuffer): void {
|
||||||
let indentation = new Array(Serializable.depth + 1).join(' ');
|
let indentation = new Array(Serializable.depth + 1).join(' ');
|
||||||
let isArray = this instanceof UhkArray;
|
let isArray = this instanceof UhkArray;
|
||||||
process.stdout.write(`${indentation}${this.constructor.name}.fromBinary: ${this}` + (isArray ? '\n' : ' => ['));
|
process.stdout.write(`${indentation}${this.constructor.name}.toBinary: ${this}` + (isArray ? '\n' : ' => ['));
|
||||||
Serializable.depth++;
|
Serializable.depth++;
|
||||||
buffer.enableDump = !isArray;
|
buffer.enableDump = !isArray;
|
||||||
let value = this._toBinary(buffer);
|
let value = this._toBinary(buffer);
|
||||||
|
|||||||
Reference in New Issue
Block a user