thriftrw

thriftrw/thriftrw-node

A thrift binary encoding library using bufrw

JavaScript
57
22
MIT License

(buffer):Result{err, value}` - `byteLength(value):Result{err, byteLength}` - `writeInto(value, buffer, offset):Result{err, byteLength}` - `readFrom(buffer, offset):Result{err, value, byteLength}` Each method returns a result object with either an `err` or a `value` property. The `byteLength` property is only present on the `readFrom` method. The `byteLength` method does not return a `byteLength` property because it would be redundant. This allows the caller to use the `Result` in a node-style callback, `throw` the `err` property, or destructure the result object using ES2015. RWs are exported by the Thrift constructor as `thrift.TStructRW` or `thrift.getType('Service::method_args').rw`. The RW for a struct is available as a property on the struct. The RW for a struct implements the methods for reading and writing the struct. The RW for a field is available as a property on the field. The RW for a field implements the methods for reading and writing the field's type. The RW for a struct implements the `toBuffer` and `fromBuffer`

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies

Support the repos that depend on thriftrw/thriftrw-node

Top contributors

kriskowal's profile
kriskowal
234 contributions
andrewdeandrade's profile
andrewdeandrade
28 contributions
Raynos's profile
Raynos
12 contributions
jcorbin's profile
jcorbin
11 contributions
mattgode's profile
mattgode
9 contributions
malandrew's profile
malandrew
6 contributions
abhinav's profile
abhinav
3 contributions
dbousque's profile
dbousque
2 contributions
ajbogh's profile
ajbogh
1 contributions
dnathe4th's profile
dnathe4th
1 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet