Umi — API References - v1.3.0
    Preparing search index...

    Type Alias StringSerializerOptions

    StringSerializerOptions: BaseSerializerOptions & {
        encoding?: Serializer<string>;
        size?: NumberSerializer | number | "variable";
    }

    Defines the options for string serializers.

    Type Declaration

    • Optionalencoding?: Serializer<string>

      The string serializer to use for encoding and decoding the content.

      utf8

    • Optionalsize?: NumberSerializer | number | "variable"

      The size of the string. It can be one of the following:

      • a NumberSerializer that prefixes the string with its size.
      • a fixed number of bytes.
      • or 'variable' to use the rest of the buffer.

      u32()