Grounds
    Preparing search index...

    Function RU8

    • Creates a schema for unsigned 8-bit integers (0-255).

      Returns TRU8

      A Relish schema for u8 values

      import { RU8, createCodec } from '@grounds/schema';

      const codec = createCodec(RU8());
      codec.encode(42).match(
      (bytes) => console.log('U8 encoded:', bytes),
      (error) => console.error(error)
      );
      • RU16 for 16-bit unsigned
      • RI8 for signed 8-bit