Exemple #1
0
        private void serialize(AutoCSer.BinarySerialize.Serializer serializer)
        {
            Serializer operationSerializer = new Serializer(serializer.Stream);

            Node.SerializeParameter(operationSerializer.Stream);
            operationSerializer.End(Node.Parameter.OperationType);
        }
        private void serialize(AutoCSer.BinarySerialize.Serializer serializer)
        {
            Serializer operationSerializer = new Serializer(serializer.Stream, ShortPathIdentity.SerializeSize + sizeof(int));

            Node.SerializeParameter(operationSerializer.Stream);
            operationSerializer.End(Node.Parameter.OperationType);
        }
        private void serialize(AutoCSer.BinarySerialize.Serializer serializer)
        {
            Serializer operationSerializer = new Serializer(serializer.Stream);

            operationSerializer.Stream.ByteSize += IndexIdentity.SerializeSize;

            fixed(char *nameFixed = CacheName) AutoCSer.BinarySerialize.Serializer.Serialize(nameFixed, operationSerializer.Stream, CacheName.Length);

            operationSerializer.End(OperationType.RemoveDataStructure);
        }
Exemple #4
0
        /// <summary>
        /// 序列化
        /// </summary>
        /// <param name="stream"></param>
        internal unsafe void SerializeOperationParameter(UnmanagedStream stream)
        {
            OperationParameter.Serializer operationSerializer = new OperationParameter.Serializer(stream);
            Identity.UnsafeSerialize(stream);

            fixed(char *nameFixed = CacheName) AutoCSer.BinarySerializer.Serialize(nameFixed, stream, CacheName.Length);

            int startIndex = stream.Data.CurrentIndex;

            valueNode.SerializeDataStructure(stream);
            stream.Data.SerializeFillWithStartIndex(startIndex);
            operationSerializer.End(OperationParameter.OperationType.GetOrCreateDataStructure);
        }