pub enum CTFType {
Show 18 variants
Integer(CIntegerType),
IntegerNoWrite(CIntegerType),
IntegerHex(CIntegerType),
IntegerNetwork(CIntegerType),
IntegerNetworkHex(CIntegerType),
Float(CFloatType),
FloatNoWrite(CFloatType),
String,
StringNoWrite,
Array(CIntegerType, i32),
ArrayText(i32),
ArrayNoWrite(CIntegerType, i32),
Sequence(CIntegerType),
SequenceNoWrite(CIntegerType),
SequenceText,
SequenceTextNoWrite,
Enum,
EnumNoWrite,
}
Expand description
Represents a CTF type
Variants§
Integer(CIntegerType)
A standard base-10 integer.
Maps to ctf_integer
.
IntegerNoWrite(CIntegerType)
A standard base-10 integer which is available to event filters, but is not persisted to the
event itself.
Maps to ctf_integer_nowrite
.
IntegerHex(CIntegerType)
Integer to be printed in hex format.
Maps to ctf_integer_hex
.
IntegerNetwork(CIntegerType)
Integer in network (BE) byte order.
Maps to ctf_integer_network
.
IntegerNetworkHex(CIntegerType)
Integer in network (BE) byte order, to be printed in hex.
Maps to ctf_niteger_network_hex
.
Float(CFloatType)
IEEE single- or double- precision float.
Maps to ctf_float
.
FloatNoWrite(CFloatType)
IEEE single- or double- precision float which is available to event filters,
but is not persisted to the event itself.
Maps to ctf_float_nowrite
.
String
A null-terminated string.
Unless you’re working with already-terminated OsStrings
, you probably want to use a
SequenceText or ArrayText instead.
Maps to ctf_string
.
StringNoWrite
A null-terminated string which is available to event filters, but is not persisted.
Unless you’re working with already-terminated OsStrings
, you probably want to use a
SequenceTextNoWrite instead.
Maps to ctf_string_nowrite
.
Array(CIntegerType, i32)
A statically sized array of integers
Maps to ctf_array
.
ArrayText(i32)
A statically sized array of integers
Maps to ctf_array_text
.
ArrayNoWrite(CIntegerType, i32)
A statically sized array of integers which is available to event filters, but is not
persisted.
Maps to ctf_array_nowrite
.
Sequence(CIntegerType)
Dynamically sized array of integers
Maps to ctf_sequence
.
SequenceNoWrite(CIntegerType)
A dynamically sized array of integers which is available to event filters, but is not
persisted.
Maps to ctf_sequence_nowrite
.
SequenceText
Dynamically-sized array, displayed as text
Maps to ctf_sequence_text
.
SequenceTextNoWrite
Dynamically-sized array, displayed as text, but is not persisted.
Maps to ctf_sequence_text_nowrite
.
Enum
Enumeration value.
TODO: some sort of proc-macro skulduggery is probably required here.
Maps to ctf_enum
.
EnumNoWrite
Enumeration value. that is available to event filters but is not persisted
TODO: some sort of proc-macro skulduggery is probably required here.
Maps to ctf_enum_nowrite
.