public static byte[] Write(OpNode node) { ByteBuffer bfs = VisualNode.Write(node); bfs.WriteBytes(FieldNode.Write(node.resultField)); return(bfs.Getbuffer()); }
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); }