Class Hyperblobs

Constructors

  • Parameters

    • core: Hypercore<"binary", undefined>
    • Optionalopts: {
          blocksize?: number;
      }
      • Optionalblocksize?: number

    Returns Hyperblobs

Properties

blockSize: number
core: Hypercore<"binary", undefined>

Accessors

  • get feed(): Hypercore<"binary", undefined>
  • Returns Hypercore<"binary", undefined>

  • get locked(): boolean
  • Returns boolean

Methods

  • Parameters

    • id: Hyperblobs.BlobId
    • Optionalopts: {
          diff?: boolean;
      }
      • Optionaldiff?: boolean

    Returns Promise<null | {
        blocks: number;
    }>

  • Parameters

    Returns Promise<null | Buffer>

  • Parameters

    • blob: Buffer
    • Optionalopts: {
          blockSize?: number;
          core?: Hypercore<"binary", undefined>;
          end?: number;
          length?: number;
          start?: number;
      }
      • OptionalblockSize?: number
      • Optionalcore?: Hypercore<"binary", undefined>
      • Optionalend?: number
      • Optionallength?: number
      • Optionalstart?: number

    Returns Promise<Hyperblobs.BlobId>