Typeberry by Fluffy Labs - v0.5.0
    Preparing search index...

    Interface IRegisters

    Allow to set and get all registers encoded into little-endian bytes.

    interface IRegisters {
        getAllEncoded(): Uint8Array;
        setAllEncoded(bytes: Uint8Array): void;
    }

    Implemented by

    Index

    Methods

    • Get all registers encoded into little-endian bytes.

      NOTE: Total length of bytes must be NO_OF_REGISTERS * REGISTER_BYTE_SIZE.

      Returns Uint8Array

    • Set all registers from little-endian encoded bytes.

      NOTE: Total length of bytes must be NO_OF_REGISTERS * REGISTER_BYTE_SIZE.

      Parameters

      • bytes: Uint8Array

      Returns void