Last active
January 21, 2016 10:53
-
-
Save subash-a/62397f16b3a05fdf625a to your computer and use it in GitHub Desktop.
Revisions
-
subash-a revised this gist
Jan 21, 2016 . 1 changed file with 9 additions and 11 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,6 +11,15 @@ interface BinaryReaderStatic { new(bytes: Uint8Array): BinaryReader; } interface BinaryReader { readString(): string; readUint64(): number; isEndGroup(): boolean; nextField(): void; getFieldNumber(): number; skipField(): void; } // methods contained in a general message object interface MessageTypeStatic { deserializeBinary(bytes: Uint8Array): MessageType; @@ -24,14 +33,3 @@ interface MessageType { cloneMessage(): this; toObject(includeInstance: boolean, msg: this): Object; } -
subash-a revised this gist
Jan 21, 2016 . 1 changed file with 15 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,6 +11,21 @@ interface BinaryReaderStatic { new(bytes: Uint8Array): BinaryReader; } // methods contained in a general message object interface MessageTypeStatic { deserializeBinary(bytes: Uint8Array): MessageType; deserializeBinaryFromReader(msg: MessageType, reader: BinaryReader): MessageType; serializeBinary(): Uint8Array; serializeBinaryToWriter(writer: BinaryWriter): Uint8Array; new(opt?: Array<Object>): MessageType; } interface MessageType { cloneMessage(): this; toObject(includeInstance: boolean, msg: this): Object; } interface BinaryReader { readString(): string; readUint64(): number; -
subash-a created this gist
Jan 21, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ interface BinaryWriterStatic { new(): BinaryWriter; } interface BinaryWriter { writeString(): void; writeUint64(): void; } interface BinaryReaderStatic { new(bytes: Uint8Array): BinaryReader; } interface BinaryReader { readString(): string; readUint64(): number; isEndGroup(): boolean; nextField(): void; getFieldNumber(): number; skipField(): void; }