/// <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()); } }
/// <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()); } }