Struct sfnt::Header[]

pub struct Header {
    pub version: Fixed16_16,
    pub num_tables: u16,
    pub search_range: u16,
    pub entry_selector: u16,
    pub range_shift: u16,
}

An SFNT file header.

Fields

The SFNT file version number.

The number of tables in the SFNT file.

The value of (largest power of two <= num_tables) * 16.

The value of log2(largest power of two <= num_tables).

The value of (num_tables * 16) - search_range.

Trait Implementations

impl Copy for Header
[src]

impl Clone for Header
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Header
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Header
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Header
[src]

impl<'a> Extract<'a, ()> for Header

Extracts a value of this type from the supplied stream of bytes. Read more

impl Span for Header

SPAN: usize = 12

The number of bytes spanned by values of this type.

Auto Trait Implementations

impl Send for Header

impl Sync for Header