...

Text file src/github.com/google/flatbuffers/tests/ts/reflection/key-value.d.ts

Documentation: github.com/google/flatbuffers/tests/ts/reflection

     1import * as flatbuffers from 'flatbuffers';
     2export declare class KeyValue implements flatbuffers.IUnpackableObject<KeyValueT> {
     3    bb: flatbuffers.ByteBuffer | null;
     4    bb_pos: number;
     5    __init(i: number, bb: flatbuffers.ByteBuffer): KeyValue;
     6    static getRootAsKeyValue(bb: flatbuffers.ByteBuffer, obj?: KeyValue): KeyValue;
     7    static getSizePrefixedRootAsKeyValue(bb: flatbuffers.ByteBuffer, obj?: KeyValue): KeyValue;
     8    key(): string | null;
     9    key(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
    10    value(): string | null;
    11    value(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
    12    static getFullyQualifiedName(): string;
    13    static startKeyValue(builder: flatbuffers.Builder): void;
    14    static addKey(builder: flatbuffers.Builder, keyOffset: flatbuffers.Offset): void;
    15    static addValue(builder: flatbuffers.Builder, valueOffset: flatbuffers.Offset): void;
    16    static endKeyValue(builder: flatbuffers.Builder): flatbuffers.Offset;
    17    static createKeyValue(builder: flatbuffers.Builder, keyOffset: flatbuffers.Offset, valueOffset: flatbuffers.Offset): flatbuffers.Offset;
    18    unpack(): KeyValueT;
    19    unpackTo(_o: KeyValueT): void;
    20}
    21export declare class KeyValueT implements flatbuffers.IGeneratedObject {
    22    key: string | Uint8Array | null;
    23    value: string | Uint8Array | null;
    24    constructor(key?: string | Uint8Array | null, value?: string | Uint8Array | null);
    25    pack(builder: flatbuffers.Builder): flatbuffers.Offset;
    26}

View as plain text