method LaneInfo.from_bytes
LaneInfo.from_bytes(bytes)

Instantiate LaneInfo from bytes

Parameters

bytes

Lane info data in bytes

Return Type

Throws

TypeError

If bytes is not Uint8Array

RangeError

If bytes length is not 5 (1 data should be 5 bytes)

Usage

import { LaneInfo } from "static/packet_conv/LaneInfo.js";