Grounds
    Preparing search index...

    Function RI8

    • Creates a schema for signed 8-bit integers (-128 to 127).

      Returns TRI8

      A Relish schema for i8 values

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

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