ChunkData

data class ChunkData(var chunkID: ByteArray? = null, var checksum: Int = 0, var offset: Long = 0, var compressedLength: Int = 0, var uncompressedLength: Int = 0)

Represents a single chunk within a file.

Parameters

chunkID

Gets or sets the SHA-1 hash chunk id.

checksum

Gets or sets the expected Adler32 checksum of this chunk.

offset

Gets or sets the chunk offset.

compressedLength

Gets or sets the compressed length of this chunk.

uncompressedLength

Gets or sets the decompressed length of this chunk.

Constructors

Link copied to clipboard
constructor(chunkID: ByteArray? = null, checksum: Int = 0, offset: Long = 0, compressedLength: Int = 0, uncompressedLength: Int = 0)

Initializes a new instance of the ChunkData class.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard