#[repr(u8)]pub enum FieldType {
Show 30 variants
Inherited = 0,
DbObject = 1,
Structure = 2,
Pointer = 3,
Array = 4,
FixedArray = 5,
String = 6,
CString = 7,
Enumeration = 8,
FileRef = 9,
Boolean = 10,
Int8 = 11,
UInt8 = 12,
Int16 = 13,
UInt16 = 14,
Int32 = 15,
UInt32 = 16,
Int64 = 17,
UInt64 = 18,
Float32 = 19,
Float64 = 20,
Guid = 21,
Sha1 = 22,
ResourceRef = 23,
Function = 24,
TypeRef = 25,
BoxedValueRef = 26,
Interface = 27,
Delegate = 28,
Unknown = 31,
}Expand description
FieldType: bits 4..9 of an encoded type.
Variants§
Inherited = 0
Not a field of its own: the type’s base class, whose fields come first; class_ref names it.
DbObject = 1
A database object (read as nothing, written as zero bytes).
Structure = 2
A nested structure stored inline, of the type class_ref names.
Pointer = 3
A reference to another instance of the document or to an import; see Pointer.
Array = 4
An array: a 4-byte displacement to the elements, with the count stored just before them.
FixedArray = 5
A fixed-length array (read as nothing, written as zero bytes).
String = 6
A 32-byte inline string, zero padded.
CString = 7
A string stored elsewhere in the data, reached by a 4-byte displacement; -1 is the empty string.
Enumeration = 8
An enumeration, a signed 32-bit value.
FileRef = 9
A file reference: a string by displacement, then 4 more bytes.
Boolean = 10
A boolean, one byte.
Int8 = 11
A signed 8-bit integer.
UInt8 = 12
An unsigned 8-bit integer.
Int16 = 13
A signed 16-bit integer.
UInt16 = 14
An unsigned 16-bit integer.
Int32 = 15
A signed 32-bit integer.
UInt32 = 16
An unsigned 32-bit integer.
Int64 = 17
A signed 64-bit integer.
UInt64 = 18
An unsigned 64-bit integer.
Float32 = 19
A 32-bit float.
Float64 = 20
A 64-bit float.
Guid = 21
A 16-byte GUID.
Sha1 = 22
A 20-byte SHA-1.
ResourceRef = 23
A 64-bit resource reference.
Function = 24
A function reference (read as nothing, written as zero bytes).
TypeRef = 25
A type reference: 4 bytes naming a primitive type or a reflected type, then 4 more bytes.
BoxedValueRef = 26
A reference to a boxed value in the boxed-value section; see BoxedRef.
Interface = 27
An interface reference (read as nothing, written as zero bytes).
Delegate = 28
A delegate, read like a type reference.
Unknown = 31
0x1D..0x1F: not a type ReSkate knows; read as nothing, written as zero bytes.