1.0.1 • Published 9 years ago

btop v1.0.1

Weekly downloads
3
License
ISC
Repository
github
Last release
9 years ago

btop

get name of Buffer operations given:

  • op: 'read' or 'write'
  • dtype: data type
  • endian: 'little' or 'big'

install

with npm, do:

npm i --save btop

usage

btop(opts) will return the following Buffer operation name based on the op, dtype, and endian options given:

Buffer operation nameopdtypeendian
readInt8readint8little
readUInt8readuint8little
readInt16LEreadint16little
readUInt16LEreaduint16little
readInt32LEreadint32little
readUInt32LEreaduint32little
readFloatLEreadfloat32little
readDoubleLEreadfloat64little
readInt8readint8big
readUInt8readuint8big
readInt16BEreadint16big
readUInt16BEreaduint16big
readInt32BEreadint32big
readUInt32BEreaduint32big
readFloatBEreadfloat32big
readDoubleBEreadfloat64big
writeInt8writeint8little
writeUInt8writeuint8little
writeInt16LEwriteint16little
writeUInt16LEwriteuint16little
writeInt32LEwriteint32little
writeUInt32LEwriteuint32little
writeFloatLEwritefloat32little
writeDoubleLEwritefloat64little
writeInt8writeint8big
writeUInt8writeuint8big
writeInt16BEwriteint16big
writeUInt16BEwriteuint16big
writeInt32BEwriteint32big
writeUInt32BEwriteuint32big
writeFloatBEwritefloat32big
writeDoubleBEwritefloat64big

returns undefined otherwise.

license

ISC