Skip to content

Instantly share code, notes, and snippets.

@russellhaering
Created August 23, 2011 19:59
Show Gist options
  • Save russellhaering/1166334 to your computer and use it in GitHub Desktop.
Save russellhaering/1166334 to your computer and use it in GitHub Desktop.
Scribe Result Code
// Thrift generated code
scribe_Log_result.prototype.write = function(output) {
output.writeStructBegin('scribe_Log_result');
if (this.success) {
output.writeFieldBegin('success', Thrift.Type.I32, 0);
output.writeI32(this.success);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment