Members
conversionArrayTypes
We can also decode 64-bit integer arrays, since ROS has these types.
- Source:
nativeArrayTypes
Supports a subset of draft CBOR typed array tags: https://tools.ietf.org/html/draft-ietf-cbor-array-tags-00
Only supports little-endian tags for now.
- Source:
REVISION
Library version
ROSLIB
If you use roslib in a browser, all the classes will be exported to a global variable called ROSLIB.
If you use nodejs, this is the variable you get when you require('roslib').
Methods
cborTypedArrayTagger(data, tag)
Handle CBOR typed array tags during decoding.
Parameters:
Name | Type | Description |
---|---|---|
data |
Uint8Array | |
tag |
Number |
- Source:
decodeInt64LE(bytes)
Unpack 64-bit signed integer from byte array.
Parameters:
Name | Type | Description |
---|---|---|
bytes |
Uint8Array |
- Source:
decodeNativeArray(bytes, ArrayType)
Unpack typed array from byte array.
Parameters:
Name | Type | Description |
---|---|---|
bytes |
Uint8Array | |
ArrayType |
type | Desired output array type |
- Source:
decodeUint64LE(bytes)
Unpack 64-bit unsigned integer from byte array.
Parameters:
Name | Type | Description |
---|---|---|
bytes |
Uint8Array |
- Source: