Ejemplo n.º 1
0
        public void Write(byte *objectAddress, SerializerOutput output)
        {
            output.WriteBytes(_headerData, _headerData.Length);

            var typeDataFields = _fields;
            var fieldsLength   = typeDataFields.Length;

            for (var index = 0; index < fieldsLength; index++)
            {
                var fieldData      = typeDataFields[index];
                var dataSerializer = fieldData.SerializationMethods;
                dataSerializer.Write(objectAddress + fieldData.Offset, output);
            }
        }
Ejemplo n.º 2
0
        public void Write(byte *objectAddress, SerializerOutput output)
        {
            var typeDataFields = Members;

            var fieldsLength = typeDataFields.Length;

            output.WriteBytes(_headerData, _headerData.Length);

            for (var index = 0; index < fieldsLength; index++)
            {
                var fieldData      = typeDataFields[index];
                var dataSerializer = fieldData.DataSerializer;
                dataSerializer.Write(objectAddress, output);
            }
        }