dsekai
World engine for retrocomputers.
All Data Structures Files Functions Variables Typedefs Friends Macros Modules Pages
Files | Macros | Functions
ASN.1 Tilemaps

Extremely specific dialect of ASN.1 used to store tilemaps in a compact and simple binary format. More...

Collaboration diagram for ASN.1 Tilemaps:

Files

file  tmasn.h
 Definitions and functions for reading an ASN.1-formatted TILEMAP.
 

Macros

#define TILEMAP_ASN_ERROR_READ   -1
 Read size returned when there was a parsing error.
 
#define TILEMAP_ASN_ERROR_WRITE   -1
 
#define TILEMAP_ASN_SAVE_BUFFER_INITIAL_SZ   2048
 

Functions

int32_t tilemap_asn_load_res (RESOURCE_ID id, struct TILEMAP *t) SECTION_ASN
 
int32_t tilemap_asn_load (const uint8_t *asn_buffer, int32_t asn_buffer_sz, struct TILEMAP *t) SECTION_ASN
 
int32_t tilemap_asn_save (MEMORY_HANDLE h_buffer, int32_t idx, struct TILEMAP *t) SECTION_ASN
 

Detailed Description

Extremely specific dialect of ASN.1 used to store tilemaps in a compact and simple binary format.