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

char * tag
char * payload
size_t size
char 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 96 of file nbt.h.

Member Data Documentation

◆ tag

char* 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 99 of file nbt.h.

◆ payload

char* clod_nbt_iter::payload

The payload. A null value starts iteration.

Definition at line 101 of file nbt.h.

◆ size

size_t clod_nbt_iter::size

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

Definition at line 103 of file nbt.h.

◆ type

char clod_nbt_iter::type

Type of the payload.

Definition at line 105 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 107 of file nbt.h.


The documentation for this struct was generated from the following file: