Exemplo n.º 1
0
        internal void ReadUnknownTagDataEntry(byte[] data, IccUnknownTagDataEntry expected, uint size)
        {
            IccDataReader reader = CreateReader(data);

            IccUnknownTagDataEntry output = reader.ReadUnknownTagDataEntry(size);

            Assert.Equal(expected, output);
        }
        internal void WriteUnknownTagDataEntry(byte[] expected, IccUnknownTagDataEntry data, uint size)
        {
            IccDataWriter writer = CreateWriter();

            writer.WriteUnknownTagDataEntry(data);
            byte[] output = writer.GetData();

            Assert.Equal(expected, output);
        }
 /// <summary>
 /// Writes a <see cref="IccUnknownTagDataEntry"/>
 /// </summary>
 /// <param name="value">The entry to write</param>
 /// <returns>The number of bytes written</returns>
 public int WriteUnknownTagDataEntry(IccUnknownTagDataEntry value)
 {
     return(this.WriteArray(value.Data));
 }