The array of bits to convert.
The converted integer.
Converts AIS "armored ASCII" payload into a flat array of bits. See AIVDM/AIVDO Payload Armoring in the guide for details.
The data payload is an ASCII-encoded bit vector. Each character represents six bits of data using two ASCII ranges: 6-bit 0-39 → ASCII 48-87 ('0' to 'W') 6-bit 40-63 → ASCII 96-119 ('`' to 'w')
The gap ASCII 88-95 ('X' to '_') is unused.
The payload to decode.
Extract a boolean (single bit) from the bit array.
The starting position in the bit array.
The extracted boolean.
Extract an integer (signed or unsigned) from the bit array.
The starting position in the bit array.
The number of bits to extract.
Optionalsigned: booleanWhether the integer is signed.
The extracted integer.
Extract a text string from the bit array.
The starting position in the bit array.
Optionallength: numberThe number of bits to extract - if not provided, extracts to end of array.
The extracted text string.
Convert an array of bits (0s and 1s) to an unsigned integer ([1, 0, 1] => 5).