Esempio n. 1
0
 /// <summary>
 /// Write a single field to stream.
 /// </summary>
 /// <param name="bw">Binary Writer to use.</param>
 public void Write(DhBinaryWriter bw)
 {
     bw.WriteU32(Hash);
     bw.WriteU32(Bitmask);
     bw.WriteU16(Offset);
     bw.WriteS8(Shift);
     bw.WriteU8((byte)Type);
 }
Esempio n. 2
0
        /// <summary>
        /// Write a single field to stream.
        /// </summary>
        /// <param name="bw">Binary Writer to use.</param>
        public void Write(DhBinaryWriter bw)
        {
            // Write the field's hash.
            bw.WriteU32(Hash);

            // Write the field's bitmask.
            bw.WriteU32(Bitmask);

            // Write the field's offset.
            bw.WriteU16(Offset);

            // Write the field's shift.
            bw.WriteS8(Shift);

            // Write the field's type.
            bw.WriteU8((byte)Type);
        }