Skip to content

Instantly share code, notes, and snippets.

@russellhaering
Created April 2, 2013 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save russellhaering/5292990 to your computer and use it in GitHub Desktop.
Save russellhaering/5292990 to your computer and use it in GitHub Desktop.
TBinaryProtocol.prototype.writeMessageBegin = function(name, type, seqid) {
if (this.strictWrite) {
this.writeI32(VERSION_1 | type);
this.writeString(name);
this.writeI32(seqid);
} else {
this.writeString(name);
this.writeByte(type);
this.writeI32(seqid);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment