libclod
C library for interacting with NBTs, region files, LOD data and other things.
Loading...
Searching...
No Matches
clod_nbt_iter Struct Reference

#include <nbt.h>

Public Attributes

uint8_t * tag
uint8_t * payload
size_t size
uint8_t type
uint32_t index

Detailed Description

Iterator. Users must not modify Fields during iteration. A zeroed payload field is used to start an iteration.

Definition at line 94 of file nbt.h.

Member Data Documentation

◆ tag

uint8_t* clod_nbt_iter::tag

The tag, if one exists. It points to the byte following the last iterated payload when iteration ends.

Definition at line 97 of file nbt.h.

◆ payload

uint8_t* clod_nbt_iter::payload

The payload. A null value starts iteration.

Definition at line 99 of file nbt.h.

◆ size

size_t clod_nbt_iter::size

Size of payload, or tag + payload if tag exists.

Definition at line 101 of file nbt.h.

◆ type

uint8_t clod_nbt_iter::type

Type of the payload.

Definition at line 103 of file nbt.h.

◆ index

uint32_t clod_nbt_iter::index

The index of the payload. Equal to the total number of elements after the iteration ends.

Definition at line 105 of file nbt.h.


The documentation for this struct was generated from the following file:
  • include/clod/structures/nbt.h