Grounds
    Preparing search index...

    Function RI16

    • Creates a schema for signed 16-bit integers (-32768 to 32767).

      Returns TRI16

      A Relish schema for i16 values

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

      const codec = createCodec(RI16());
      codec.encode(-1000).match(
      (bytes) => console.log('I16 encoded:', bytes),
      (error) => console.error(error)
      );
      • RI8 for 8-bit signed
      • RI32 for 32-bit signed