Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a Send.

Hierarchy

  • Send

Implements

Index

Constructors

constructor

  • Constructs a new Send.

    Parameters

    • Optional properties: ISend

    Returns Send

Properties

buff

buff: Uint8Array

Send buff.

Methods

toJSON

  • toJSON(): object
  • Converts this Send to JSON.

    Returns object

    JSON object

    • [k: string]: any

Static create

  • Creates a new Send instance using the specified properties.

    Parameters

    • Optional properties: ISend

    Returns Send

    Send instance

Static decode

  • decode(reader: Reader | Uint8Array, length?: undefined | number): Send
  • Decodes a Send message from the specified reader or buffer.

    throws

    {Error} If the payload is not a reader or valid buffer

    throws

    {$protobuf.util.ProtocolError} If required fields are missing

    Parameters

    • reader: Reader | Uint8Array

      Reader or buffer to decode from

    • Optional length: undefined | number

    Returns Send

    Send

Static decodeDelimited

  • decodeDelimited(reader: Reader | Uint8Array): Send
  • Decodes a Send message from the specified reader or buffer, length delimited.

    throws

    {Error} If the payload is not a reader or valid buffer

    throws

    {$protobuf.util.ProtocolError} If required fields are missing

    Parameters

    • reader: Reader | Uint8Array

      Reader or buffer to decode from

    Returns Send

    Send

Static encode

  • encode(message: ISend, writer?: $protobuf.Writer): Writer
  • Encodes the specified Send message. Does not implicitly verify messages.

    Parameters

    • message: ISend

      Send message or plain object to encode

    • Optional writer: $protobuf.Writer

    Returns Writer

    Writer

Static encodeDelimited

  • encodeDelimited(message: ISend, writer?: $protobuf.Writer): Writer
  • Encodes the specified Send message, length delimited. Does not implicitly verify messages.

    Parameters

    • message: ISend

      Send message or plain object to encode

    • Optional writer: $protobuf.Writer

    Returns Writer

    Writer

Static fromObject

  • fromObject(object: object): Send
  • Creates a Send message from a plain object. Also converts values to their respective internal types.

    Parameters

    • object: object

      Plain object

      • [k: string]: any

    Returns Send

    Send

Static toObject

  • toObject(message: Send, options?: $protobuf.IConversionOptions): object
  • Creates a plain object from a Send message. Also converts values to other types if specified.

    Parameters

    • message: Send

      Send

    • Optional options: $protobuf.IConversionOptions

    Returns object

    Plain object

    • [k: string]: any

Static verify

  • verify(message: object): null | string
  • Verifies a Send message.

    Parameters

    • message: object

      Plain object to verify

      • [k: string]: any

    Returns null | string

    null if valid, otherwise the reason why it is not

Generated using TypeDoc