@yorkie-js/sdk
    Preparing search index...

    Variable converterConst

    converter: {
        bytesToChangeID: (bytes: Uint8Array) => ChangeID;
        bytesToHex: (bytes?: Uint8Array<ArrayBufferLike>) => string;
        bytesToObject: (bytes?: Uint8Array<ArrayBufferLike>) => CRDTObject;
        bytesToOperation: (bytes: Uint8Array) => Operation;
        bytesToSnapshot: <P extends Indexable>(
            bytes?: Uint8Array<ArrayBufferLike>,
        ) => { presences: Map<string, P>; root: CRDTObject };
        changeIDToBinary: (changeID: ChangeID) => Uint8Array<ArrayBuffer>;
        fromChangePack: <P extends Indexable>(pbPack: ChangePack) => ChangePack<P>;
        fromChanges: <P extends Indexable>(pbChanges: Change[]) => Change<P>[];
        fromPresence: <P extends Indexable>(pbPresence: Presence) => P;
        fromSchemaRules: (pbRules: Rule[]) => Rule[];
        fromTreeNodes: (pbTreeNodes: TreeNode[]) => CRDTTreeNode | undefined;
        hexToBytes: (hex: string) => Uint8Array;
        hexToVersionVector: (hex: string) => VersionVector;
        objectToBytes: (obj: CRDTObject) => Uint8Array;
        operationToBinary: (op: Operation) => Uint8Array<ArrayBuffer>;
        toChangeID: (changeID: ChangeID) => ChangeID;
        toChangePack: (pack: ChangePack<Indexable>) => ChangePack;
        toHexString: (bytes: Uint8Array) => string;
        toOperation: (operation: Operation) => Operation;
        toRevisionSummary: (pbRevision: RevisionSummary) => RevisionSummary;
        toTreeNodes: (node: CRDTTreeNode) => TreeNode[];
        toUint8Array: (hex: string) => Uint8Array;
        versionVectorToHex: (vector: VersionVector) => string;
    } = ...

    converter is a converter that converts the given model to protobuf format. is also used to convert models to bytes and vice versa.

    Type Declaration

    • bytesToChangeID: (bytes: Uint8Array) => ChangeID
    • bytesToHex: (bytes?: Uint8Array<ArrayBufferLike>) => string
    • bytesToObject: (bytes?: Uint8Array<ArrayBufferLike>) => CRDTObject
    • bytesToOperation: (bytes: Uint8Array) => Operation
    • bytesToSnapshot: <P extends Indexable>(
          bytes?: Uint8Array<ArrayBufferLike>,
      ) => { presences: Map<string, P>; root: CRDTObject }
    • changeIDToBinary: (changeID: ChangeID) => Uint8Array<ArrayBuffer>
    • fromChangePack: <P extends Indexable>(pbPack: ChangePack) => ChangePack<P>
    • fromChanges: <P extends Indexable>(pbChanges: Change[]) => Change<P>[]
    • fromPresence: <P extends Indexable>(pbPresence: Presence) => P
    • fromSchemaRules: (pbRules: Rule[]) => Rule[]
    • fromTreeNodes: (pbTreeNodes: TreeNode[]) => CRDTTreeNode | undefined
    • hexToBytes: (hex: string) => Uint8Array
    • hexToVersionVector: (hex: string) => VersionVector
    • objectToBytes: (obj: CRDTObject) => Uint8Array
    • operationToBinary: (op: Operation) => Uint8Array<ArrayBuffer>
    • toChangeID: (changeID: ChangeID) => ChangeID
    • toChangePack: (pack: ChangePack<Indexable>) => ChangePack
    • toHexString: (bytes: Uint8Array) => string
    • toOperation: (operation: Operation) => Operation
    • toRevisionSummary: (pbRevision: RevisionSummary) => RevisionSummary
    • toTreeNodes: (node: CRDTTreeNode) => TreeNode[]
    • toUint8Array: (hex: string) => Uint8Array
    • versionVectorToHex: (vector: VersionVector) => string