Types

Address and object identifiers

typedef int64_t apfs::paddr_t

Address type.

typedef uint64_t apfs::oid_t

An object identifier.

typedef uint64_t apfs::xid_t

A transcation identifier.

typedef unsigned char apfs::uuid_t[16]

A universally unique identifier.

using apfs::guid_t = std::array<uint8_t, 16>

An array of 16 characters used to store a partition’s GUID.

This is what is externally exposed.

Filesystem types

typedef uint32_t apfs::uid_t

A user identifier.

typedef uint32_t apfs::gid_t

A group identifier.

typedef uint16_t apfs::apfs_mode_t

A file mode.

For possible types, see apfs::directory_entry_type. The names, values, and meanings of these constants are the same as the constants provided by <sys/stat.h>.

typedef std::string apfs::bytes_t

A container type used to store raw binary data.

typedef ssize_t apfs::apfs_ssize_t