Return the deserialized value from a stringified buffer.

Implements

Constructors

Properties

endian: Endian

The endianness of the stored value.

offset: number

The buffer offset to start deserializing from.

The type of value to deserialize.

Methods

  • Converts this BufferLayoutParseTask to JSON.

    Returns {
        [k: string]: any;
    }

    JSON object

    • [k: string]: any
  • Decodes a BufferLayoutParseTask message from the specified reader or buffer.

    Parameters

    • reader: Uint8Array | Reader

      Reader or buffer to decode from

    • Optional length: number

      Message length if known beforehand

    Returns BufferLayoutParseTask

    BufferLayoutParseTask

    Throws

    If the payload is not a reader or valid buffer

    Throws

    If required fields are missing

  • Decodes a BufferLayoutParseTask message from the specified reader or buffer, length delimited.

    Parameters

    • reader: Uint8Array | Reader

      Reader or buffer to decode from

    Returns BufferLayoutParseTask

    BufferLayoutParseTask

    Throws

    If the payload is not a reader or valid buffer

    Throws

    If required fields are missing

  • Encodes the specified BufferLayoutParseTask message. Does not implicitly verify messages.

    Parameters

    • message: IBufferLayoutParseTask

      BufferLayoutParseTask message or plain object to encode

    • Optional writer: Writer

      Writer to encode to

    Returns Writer

    Writer

  • Encodes the specified BufferLayoutParseTask message, length delimited. Does not implicitly verify messages.

    Parameters

    • message: IBufferLayoutParseTask

      BufferLayoutParseTask message or plain object to encode

    • Optional writer: Writer

      Writer to encode to

    Returns Writer

    Writer

  • Creates a BufferLayoutParseTask message from a plain object. Also converts values to their respective internal types.

    Parameters

    • object: {
          [k: string]: any;
      }

      Plain object

      • [k: string]: any

    Returns BufferLayoutParseTask

    BufferLayoutParseTask

  • Gets the default type url for BufferLayoutParseTask

    Parameters

    • Optional typeUrlPrefix: string

      your custom typeUrlPrefix(default "type.googleapis.com")

    Returns string

    The default type url

  • Creates a plain object from a BufferLayoutParseTask message. Also converts values to other types if specified.

    Parameters

    • message: BufferLayoutParseTask

      BufferLayoutParseTask

    • Optional options: IConversionOptions

      Conversion options

    Returns {
        [k: string]: any;
    }

    Plain object

    • [k: string]: any
  • Verifies a BufferLayoutParseTask message.

    Parameters

    • message: {
          [k: string]: any;
      }

      Plain object to verify

      • [k: string]: any

    Returns string

    null if valid, otherwise the reason why it is not