Package Exports
- @protobufjs/float
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@protobufjs/float) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@protobufjs/float
Reads / writes floats / doubles from / to buffers in both modern and ancient browsers. Fast.
API
writeFloatLE(val:
number
, buf:Uint8Array
, pos:number
)
Writes a 32 bit float to a buffer using little endian byte order.writeFloatBE(val:
number
, buf:Uint8Array
, pos:number
)
Writes a 32 bit float to a buffer using big endian byte order.readFloatLE(buf:
Uint8Array
, pos:number
):number
Reads a 32 bit float from a buffer using little endian byte order.readFloatBE(buf:
Uint8Array
, pos:number
):number
Reads a 32 bit float from a buffer using big endian byte order.writeDoubleLE(val:
number
, buf:Uint8Array
, pos:number
)
Writes a 64 bit double to a buffer using little endian byte order.writeDoubleBE(val:
number
, buf:Uint8Array
, pos:number
)
Writes a 64 bit double to a buffer using big endian byte order.readDoubleLE(buf:
Uint8Array
, pos:number
):number
Reads a 64 bit double from a buffer using little endian byte order.readDoubleBE(buf:
Uint8Array
, pos:number
):number
Reads a 64 bit double from a buffer using big endian byte order.
License: BSD 3-Clause License