[u8; 14]
Array 188 v393About This Type
Fixed-length array of 14 u8 values.
Always exactly 14 elements. No length prefix needed since the size is known at compile time.
Encoding: 14 elements encoded consecutively, no length prefix.
Fixed-Length Array
- Element Type
- u8
- Length
- 14
- SCALE Encoding
- Fixed-length (14 x element size bytes)
SCALE Encoding
- Rule
- 14 elements encoded consecutively, no length prefix (size known at compile time).
- Size
- 14 bytes
Examples
14-byte array = [u8; 14]
0xxxxxxxxx...14 raw bytes 14 bytes concatenated, no prefixCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode a [u8; 14]
const arr = registry.createType("[u8; 14]", new Uint8Array(14));
console.log("Hex:", arr.toHex());Referenced By (2)
Type Information
- Type ID
- 188
- Kind
- Array
- Runtime
- v393