private static void WriteCustomType(Stream stream, RawCustomValue customType, bool writeType) { if (writeType) { stream.WriteByte(0x63); } stream.WriteByte(customType.Code); WriteIntLength(stream, customType.Data.Length); stream.Write(customType.Data, 0, customType.Data.Length); }
private static void WriteCustomType(IBinaryWriter writer, RawCustomValue customType) { writer.WriteByte(customType.Code); writer.WriteInt16((short)customType.Data.Length); writer.WriteBytes(customType.Data); }