FileData

constructor(filename: String, filenameHash: ByteArray, flag: EnumSet<EDepotFileFlag>, size: Long, hash: ByteArray, linkTarget: String, encrypted: Boolean, numChunks: Int)

Initializes a new instance of the FileData class with specified values.


constructor(fileName: String = "", fileNameHash: ByteArray = byteArrayOf(), chunks: MutableList<ChunkData> = mutableListOf(), flags: EnumSet<EDepotFileFlag> = EnumSet.noneOf(EDepotFileFlag::class.java), totalSize: Long = 0, fileHash: ByteArray = byteArrayOf(), linkTarget: String? = null)

Initializes a new instance of the FileData class.

Parameters

fileName

Gets the name of the file.

fileNameHash

Gets SHA-1 hash of this file's name.

chunks

Gets the chunks that this file is composed of.

flags

Gets the file flags

totalSize

Gets the total size of this file.

fileHash

Gets SHA-1 hash of this file.

linkTarget

Gets symlink target of this file.