@abckey/proto
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

abckey-proto

NPM version

ABCKEY Protocol Buffers.

Install

npm i @abckey/proto

Usage

npm run build

protobuf.js

Protocol

Messages are sent in packets of 64 bytes.

First packet has the following structure:

offset length type contents
0 3 char[3] '$##' magic constant
3 2 BE uint16_t numerical types
5 4 BE uint32_t message size
9 55 uint8_t[55] first 55 bytes of message encoded in Protocol Buffers (padded with zeroes if shorter)

Following packets has the following structure:

offset length type contents
0 1 char[1] '$' magic constant
1 63 uint8_t[63] following bytes of message encoded in Protocol Buffers (padded with zeroes if shorter)

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    1
  • 0.0.2
    0

Package Sidebar

Install

npm i @abckey/proto

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

578 kB

Total Files

6

Last publish

Collaborators

  • webees