pub enum ParamFieldType {
}
Expand description
Type of field present in the param
[su](8|16|32) are integer types, signed and unsigned respectively, with the appropriate bit sizes.
Variants§
s8
Signed integer with size of 8 bits
u8
Unsigned integer with size of 8 bits
s16
Signed integer with size of 16 bits
u16
Unsigned integer with size of 16 bits
s32
Signed integer with size of 32 bits
u32
Unsigned integer with size of 32 bits
b32
Boolean value represented with 32 bits. 0 == false
, !0 == true
.
f32
Single-precision floating point
a32
Single-precision floating point, but this time references an angle. No real difference to ParamFieldType::f32
f64
Double-precision floating point
fixstr
Fixed-length string encoded in ShiftJIS.
fixstrW
Fixed-length string encoded in UTF16.
dummy8
Unused or unknown bytes or bits, likely used for padding
Implementations§
Source§impl ParamFieldType
impl ParamFieldType
Sourcepub fn set_bit_size(&mut self, new_bit_size: u8)
pub fn set_bit_size(&mut self, new_bit_size: u8)
Sets the bit size of a field type, on field types that support variable bit lengths.
§Panics
Panics when the field type does not support bit size definitions. See ParamFieldType::supports_bit_size
Sourcepub fn supports_bit_size(&self) -> bool
pub fn supports_bit_size(&self) -> bool
Whether the given field type supports bit size definitions