Example #1
0
        private byte[] NodeToArrayAsChild(MPTNode n)
        {
            using var ms     = new MemoryStream();
            using var writer = new BinaryWriter(ms, Neo.Utility.StrictUTF8, true);

            n.SerializeAsChild(writer);
            writer.Flush();
            return(ms.ToArray());
        }