Skip to content

Instantly share code, notes, and snippets.

@russellhaering
Created April 2, 2013 15:12
Show Gist options
  • 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