示例#1
0
 /// <summary>
 /// Writes a profile description
 /// </summary>
 /// <param name="value">The value to write</param>
 /// <returns>the number of bytes written</returns>
 public int WriteProfileDescription(IccProfileDescription value)
 {
     return(this.WriteUInt32(value.DeviceManufacturer)
            + this.WriteUInt32(value.DeviceModel)
            + this.WriteInt64((long)value.DeviceAttributes)
            + this.WriteUInt32((uint)value.TechnologyInformation)
            + this.WriteTagDataEntryHeader(IccTypeSignature.MultiLocalizedUnicode)
            + this.WriteMultiLocalizedUnicodeTagDataEntry(new IccMultiLocalizedUnicodeTagDataEntry(value.DeviceManufacturerInfo))
            + this.WriteTagDataEntryHeader(IccTypeSignature.MultiLocalizedUnicode)
            + this.WriteMultiLocalizedUnicodeTagDataEntry(new IccMultiLocalizedUnicodeTagDataEntry(value.DeviceModelInfo)));
 }
        /// <summary>
        /// Reads a <see cref="IccProfileSequenceDescTagDataEntry"/>
        /// </summary>
        /// <returns>The read entry</returns>
        public IccProfileSequenceDescTagDataEntry ReadProfileSequenceDescTagDataEntry()
        {
            uint count = this.ReadUInt32();

            IccProfileDescription[] description = new IccProfileDescription[count];
            for (int i = 0; i < count; i++)
            {
                description[i] = this.ReadProfileDescription();
            }

            return(new IccProfileSequenceDescTagDataEntry(description));
        }