io7m | single-page | multi-page | SMF Format Specification 0.16.0-SNAPSHOT
3.4. Sections
Previous
3. SMF/B - Binary Encoding
Up
3.6. Section - triangles
Next

# 3.5. Section - metadata

- 3.5.1. Definition
- 3.5.2. Cardinality/Ordering
- 3.5.3. Magic Number
- 3.5.4. Data

## 3.5.1. Definition

1
The metadata section specifies arbitrary metadata.

## 3.5.2. Cardinality/Ordering

1
A metadata section can appear [0, n] times in an SMF/B file, for any n.
2
The metadata section has no requirements on ordering.

## 3.5.3. Magic Number

1
The metadata section is identified by the magic number 0x534D465F4D455441.

## 3.5.4. Data

1
The data of a metadata section starts with the following fixed-size header:

### 3.5.4.2. Metadata Header

    <composite name="SMFMeta">
      <ref name="metaSchemaIdentifier"
           type="SchemaIdentifier"/>
      <ref name="metaSize"
           type="uint32"/>
    </composite>

3
The metaSchemaIdentifier, field is intended to provide type information for the metadata. It has the same semantics and purpose as schema identifiers. The metaSize field specifies the size in octets of the metadata.
3.4. Sections
Previous
3. SMF/B - Binary Encoding
Up
3.6. Section - triangles
Next
io7m | single-page | multi-page | SMF Format Specification 0.16.0-SNAPSHOT