FileData

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

Represents a single file within a manifest.

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.

Constructors

Link copied to clipboard
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.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var flags: EnumSet<EDepotFileFlag>
Link copied to clipboard
Link copied to clipboard