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