Exemplo n.º 1
0
        public static byte[] Write(OpNode node)
        {
            ByteBuffer bfs = VisualNode.Write(node);

            bfs.WriteBytes(FieldNode.Write(node.resultField));
            return(bfs.Getbuffer());
        }
Exemplo n.º 2
0
        public static OpNode Read(byte[] bytes, OpNode node)
        {
            ByteBuffer bfs = new ByteBuffer(bytes);

            VisualNode.Read(bfs, node);
            node.resultField        = FieldNode.Read(bfs.ReadBytes());
            node.resultField.Target = node;
            return(node);
        }