Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Block

description

生成上传所需块结构的构造器

export
implements

{Interface.Block}

Hierarchy

  • Block

Implements

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • new Block(file: QZFile, startByte: number, endByte: number): Block

Properties

chunks

chunks: Chunk[]

储存的片信息

memberof

Block

endByte

endByte: number

块结束位置

memberof

Block

file

file: QZFile

父节点引用

memberof

Block

startByte

startByte: number

块开始位置

memberof

Block

Accessors

blob

  • get blob(): Blob

index

  • get index(): number
  • 获取块在文件中的索引位置

    readonly
    memberof

    Block

    Returns number

size

  • get size(): number

Methods

getChunkByIndex

  • getChunkByIndex(index: number): Chunk

getChunks

Generated using TypeDoc