Space Engineers
Classes | Enumerations
Package VRage.Serialization

Classes

class  BlitCollectionSerializer
 This is not optimal in terms of allocations, but works fine More...
 
class  BlitSerializer
 
class  DynamicAttribute
 
class  DynamicItemAttribute
 
class  DynamicKeyAttribute
 
class  DynamicNullableItemAttribute
 
interface  IAssignableFrom
 
interface  IDynamicResolver
 
interface  INetObjectResolver
 
interface  ISerializer
 
class  MyFactory
 
class  MyMemberSerializer
 
class  MySerializationHelpers
 
class  MySerializeException
 
class  MySerializeInfo
 
class  MySerializer
 
class  MySerializerArray
 
class  MySerializerBitReaderWriter
 
class  MySerializerBool
 
class  MySerializerColor
 
class  MySerializerDBNull
 
class  MySerializerDictionary
 
class  MySerializerDouble
 
class  MySerializerEnum
 
class  MySerializerFloat
 
class  MySerializerGuid
 
class  MySerializerHalf
 
class  MySerializerHashSet
 
class  MySerializerInt16
 
class  MySerializerInt32
 
class  MySerializerInt64
 
class  MySerializerInt8
 
class  MySerializerList
 
class  MySerializerMyStringHash
 
class  MySerializerNetObject
 
class  MySerializerNullable
 
class  MySerializerObject
 
class  MySerializerQuaternion
 
class  MySerializerString
 
class  MySerializerUInt16
 
class  MySerializerUInt32
 
class  MySerializerUInt64
 
class  MySerializerUInt8
 
class  NoSerializeAttribute
 
class  NullableAttribute
 
class  NullableItemAttribute
 
class  NullableKeyAttribute
 
class  ProtoSerializer
 
class  SerializableBoundingSphereD
 
class  SerializableDictionary
 
class  SerializableDictionaryCompat
 
class  SerializableDictionaryHack
 
class  SerializeAttribute
 
class  TupleSerializer
 Serializer for empty class, does nothing More...
 

Enumerations

enum  MyObjectFlags {
  MyObjectFlags.None = 0x0, MyObjectFlags.DefaultZero = 0x1, MyObjectFlags.Nullable = 0x1, MyObjectFlags.Dynamic = 0x2,
  MyObjectFlags.DefaultValueOrEmpty = 0x4, MyObjectFlags.DynamicDefault = 0x8, MyObjectFlags.None = 0x0, MyObjectFlags.DefaultZero = 0x1,
  MyObjectFlags.Nullable = 0x1, MyObjectFlags.Dynamic = 0x2, MyObjectFlags.DefaultValueOrEmpty = 0x4, MyObjectFlags.DynamicDefault = 0x8
}
 
enum  MySerializeErrorEnum { MySerializeErrorEnum.NullNotAllowed, MySerializeErrorEnum.DynamicNotAllowed }
 
enum  MyObjectFlags {
  MyObjectFlags.None = 0x0, MyObjectFlags.DefaultZero = 0x1, MyObjectFlags.Nullable = 0x1, MyObjectFlags.Dynamic = 0x2,
  MyObjectFlags.DefaultValueOrEmpty = 0x4, MyObjectFlags.DynamicDefault = 0x8, MyObjectFlags.None = 0x0, MyObjectFlags.DefaultZero = 0x1,
  MyObjectFlags.Nullable = 0x1, MyObjectFlags.Dynamic = 0x2, MyObjectFlags.DefaultValueOrEmpty = 0x4, MyObjectFlags.DynamicDefault = 0x8
}
 
enum  MyPrimitiveFlags {
  MyPrimitiveFlags.None = 0x0, MyPrimitiveFlags.Signed = 0x1, MyPrimitiveFlags.Normalized = 0x2, MyPrimitiveFlags.Variant = 0x4,
  MyPrimitiveFlags.VariantSigned = Variant | Signed, MyPrimitiveFlags.Ascii = 0x8, MyPrimitiveFlags.Utf8 = 0x10, MyPrimitiveFlags.FixedPoint8 = 0x20,
  MyPrimitiveFlags.FixedPoint16 = 0x40
}
 Primitive flags are passed down the object hierarchy. More...
 
enum  MySerializeKind { MySerializeKind.Default, MySerializeKind.Key, MySerializeKind.Item }
 

Enumeration Type Documentation

Enumerator
None 

No serialization flags

DefaultZero 

Do not serialize member when it has default value, null for objects, zeros for structs. In binary streams, bit is written to indicate whether object had a value or not.

Nullable 

Alias to default value.

Dynamic 

Member can store subclasses of specified type, actual member type will be serialized as well. Valid only on class members (not for value types).

DefaultValueOrEmpty 

Applies only to collections. When serializing empty collection (zero element count) it will behave like DefaultValue.

DynamicDefault 

Same as dynamic, but stores a bit indicating whether serialized type is different from member type or not. When it's same, type is not serialized. Usefull when some instances have default type.

None 

No serialization flags

DefaultZero 

Do not serialize member when it has default value, null for objects, zeros for structs. In binary streams, bit is written to indicate whether object had a value or not.

Nullable 

Alias to default value.

Dynamic 

Member can store subclasses of specified type, actual member type will be serialized as well. Valid only on class members (not for value types).

DefaultValueOrEmpty 

Applies only to collections. When serializing empty collection (zero element count) it will behave like DefaultValue.

DynamicDefault 

Same as dynamic, but stores a bit indicating whether serialized type is different from member type or not. When it's same, type is not serialized. Usefull when some instances have default type.

Definition at line 9 of file MyObjectFlags.cs.

Enumerator
None 

No serialization flags

DefaultZero 

Do not serialize member when it has default value, null for objects, zeros for structs. In binary streams, bit is written to indicate whether object had a value or not.

Nullable 

Alias to default value.

Dynamic 

Member can store subclasses of specified type, actual member type will be serialized as well. Valid only on class members (not for value types).

DefaultValueOrEmpty 

Applies only to collections. When serializing empty collection (zero element count) it will behave like DefaultValue.

DynamicDefault 

Same as dynamic, but stores a bit indicating whether serialized type is different from member type or not. When it's same, type is not serialized. Usefull when some instances have default type.

None 

No serialization flags

DefaultZero 

Do not serialize member when it has default value, null for objects, zeros for structs. In binary streams, bit is written to indicate whether object had a value or not.

Nullable 

Alias to default value.

Dynamic 

Member can store subclasses of specified type, actual member type will be serialized as well. Valid only on class members (not for value types).

DefaultValueOrEmpty 

Applies only to collections. When serializing empty collection (zero element count) it will behave like DefaultValue.

DynamicDefault 

Same as dynamic, but stores a bit indicating whether serialized type is different from member type or not. When it's same, type is not serialized. Usefull when some instances have default type.

Definition at line 9 of file MyObjectFlags.cs.

Primitive flags are passed down the object hierarchy.

Enumerator
None 

No primitive flags.

Signed 

Flag which indicates whether primitive is signed.

Normalized 

Flag which indicates whether primitive is normalized. Exact behavior depends on actual type (0..1, -1..1, normalized vector, etc)

Variant 

Serialize member as unsigned variant (variable length integer, 0-127...1-byte, 127-32767...2-byte, etc)

VariantSigned 

Serialize member as unsigned signed (-63..64, 1-byte etc, -32767..32768, 2-byte, etc)

Ascii 

Serialize string in ascii encoding

Utf8 

Serialize string in UTF8 encoding

FixedPoint8 

Fixed point 8-bit precision, use with normalized

FixedPoint16 

Fixed point 16-bit precision, use with normalized

Definition at line 11 of file MyPrimitiveFlags.cs.

Enumerator
NullNotAllowed 
DynamicNotAllowed 

Definition at line 8 of file MySerializeErrorEnum.cs.

Enumerator
Default 
Key 
Item 

Definition at line 8 of file MySerializeKind.cs.