Interface Record

Provides access to the data within a Record that was consumed

interface Record {
    hasKey(): boolean;
    key(): null | ArrayBuffer;
    keyString(): null | string;
    value(): ArrayBuffer;
    valueString(): string;
}

Methods

  • Returns true if this Record has a key, or false otherwise

    Returns boolean

  • Returns the Key of this Record as a byte buffer, or null if there is no key

    Returns null | ArrayBuffer

  • Returns the Key of this Record as a string, or null if there is no key

    Returns null | string

  • Returns the Value of this Record as a byte buffer

    Returns ArrayBuffer

  • Returns the Value of this Record as a string

    Returns string