ReadLong() public method

Reads a System.Int32.
public ReadLong ( ) : int
return int
Example #1
0
 public void Read(FontData fontData)
 {
     this.Tag      = fontData.ReadTag();
     this.CheckSum = fontData.ReadULong();
     this.Offset   = fontData.ReadLong();
     this.Length   = (int)fontData.ReadULong();
 }
Example #2
0
        /// <summary>
        /// Creates and reads a TableDirectoryEntry from the font image.
        /// </summary>
        public static TableDirectoryEntry ReadFrom(FontData fontData)
        {
            TableDirectoryEntry entry = new TableDirectoryEntry();

            entry.Tag      = fontData.ReadTag();
            entry.CheckSum = fontData.ReadULong();
            entry.Offset   = fontData.ReadLong();
            entry.Length   = (int)fontData.ReadULong();
            return(entry);
        }