/// <inheritdoc />
 public byte[] Serialize(BuildingContext context)
 {
     using (var stream = new MemoryStream())
     {
         var writer = new BigEndianStreamWriter(stream);
         writer.Write((ushort)BootstrapMethods.Count);
         foreach (var method in BootstrapMethods)
         {
             method.Write(writer);
         }
         return(stream.ToArray());
     }
 }
예제 #2
0
        /// <inheritdoc />
        public byte[] Serialize(BuildingContext context)
        {
            using (var stream = new MemoryStream())
            {
                var writer = new BigEndianStreamWriter(stream);

                writer.Write((ushort)InnerClasses.Count);
                foreach (var @class in InnerClasses)
                {
                    @class.Write(writer);
                }

                return(stream.ToArray());
            }
        }