Пример #1
0
        internal void ReadColorantOrderTagDataEntry(byte[] data, IccColorantOrderTagDataEntry expected)
        {
            IccDataReader reader = CreateReader(data);

            IccColorantOrderTagDataEntry output = reader.ReadColorantOrderTagDataEntry();

            Assert.Equal(expected, output);
        }
        internal void WriteColorantOrderTagDataEntry(byte[] expected, IccColorantOrderTagDataEntry data)
        {
            IccDataWriter writer = CreateWriter();

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

            Assert.Equal(expected, output);
        }
 /// <summary>
 /// Writes a <see cref="IccColorantOrderTagDataEntry"/>
 /// </summary>
 /// <param name="value">The entry to write</param>
 /// <returns>The number of bytes written</returns>
 public int WriteColorantOrderTagDataEntry(IccColorantOrderTagDataEntry value)
 {
     return(this.WriteUInt32((uint)value.ColorantNumber.Length)
            + this.WriteArray(value.ColorantNumber));
 }