CustomData
This message is used to embed data in a generic way without introducing breaking changes in the demo file format. It is up to the engine whether to use or process this kind of message.
- Overview
- C
- C++
- C#
- JS
- TS
- Go
- Rust
- Zig
Name | Type | Size in bytes | Size in bits | Value |
---|---|---|---|---|
Unknown | int | 4 | 32 | - |
Size | int | 4 | 32 | - |
Data | byte[] | Size | Size*8 | - |
typedef struct {
int unknown;
int size;
char* data;
} custom_data_t;
struct custom_data_t {
int32_t unknown;
int32_t size;
std::vector<std::byte> data;
};
class CustomData {
public int Unknown { get; set; }
public int Size { get; set; }
public List<byte> Data { get; set; }
}
class CustomData {
/** @type {number} */
unknown;
/** @type {number} */
size;
/** @type {number[]} */
data;
}
export class CustomData {
public unknown?: number;
public size?: number;
public data?: number[];
}
type CustomData struct {
Unknown int32
Size int32
Data []byte
}
pub struct CustomData {
pub unknown: i32,
pub size: i32,
pub data: Vec<u8>,
}
const CustomData = struct {
unknown: i32,
size: i32,
data: []u8,
};