Expand description

A wrapper for structures that contain flexible arrays.

The following code provides generic helpers for creating and accessing flexible array structs. A complete definition of flexible array structs is found in the ISO 9899 specification http://www.iso-9899.info/n1570.html. A flexible array struct is of the form:

#[repr(C)]
struct T {
   some_data: u32,
   nents: u32,
   entries: __IncompleteArrayField<S>,
}

where:

  • T is the flexible array struct type
  • S is the flexible array type
  • nents is the flexible array length
  • entries is the flexible array member

These structures are used by the kernel API.

Structs§

Traits§

  • A collection of methods that are required by the FlexibleArrayWrapper type.

Functions§