27#ifndef LIBAARUFORMAT_LISA_TAG_H
28#define LIBAARUFORMAT_LISA_TAG_H
uint8_t * priam_tag_to_bytes(priam_tag tag)
Serialize a priam_tag into a newly allocated 24-byte big-endian on-disk representation.
priam_tag bytes_to_priam_tag(const uint8_t *bytes)
Parse a 24-byte Priam tag record into a priam_tag structure.
sony_tag profile_tag_to_sony(profile_tag tag)
Convert a profile_tag to a sony_tag.
uint8_t * sony_tag_to_bytes(sony_tag tag)
Serialize a sony_tag into a newly allocated 12-byte big-endian on-disk representation.
profile_tag priam_tag_to_profile(priam_tag tag)
Convert a priam_tag to a profile_tag.
uint8_t * profile_tag_to_bytes(profile_tag tag)
Serialize a profile_tag into a newly allocated 20-byte big-endian on-disk representation.
profile_tag sony_tag_to_profile(sony_tag tag)
Convert a sony_tag to a profile_tag representation.
sony_tag bytes_to_sony_tag(const uint8_t *bytes)
Parse a 12-byte Sony tag record into a sony_tag structure.
profile_tag bytes_to_profile_tag(const uint8_t *bytes)
Parse a 20-byte Profile tag record into a profile_tag structure.
priam_tag sony_tag_to_priam(sony_tag tag)
Convert a sony_tag to a priam_tag representation.
priam_tag profile_tag_to_priam(profile_tag tag)
Convert a profile_tag to a priam_tag.
sony_tag priam_tag_to_sony(priam_tag tag)
Convert a priam_tag to a sony_tag.
uint8_t reserved
0x02 bits 5 to 0, reserved
int16_t file_id
0x04, file ID
uint32_t next_block
0x0E, 3 bytes, next block, 0xFFFFFF if it's last block
uint32_t prev_block
0x11, 3 bytes, previous block, 0xFFFFFF if it's first block
uint32_t disk_size
0x14, disk size
uint8_t checksum
0x0B, checksum of data
uint32_t abs_page
0x08, 3 bytes, absolute page number
uint8_t valid_chk
0x06 bit 7, checksum valid?
uint8_t kind
0x02 bits 7 to 6, kind of info in this block
uint16_t used_bytes
0x06 bits 6 to 0, used bytes in block
uint8_t volume
0x03, disk volume number
uint16_t version
0x00, Lisa OS version number
uint16_t rel_page
0x0C, relative page number
uint8_t checksum
0x0B, checksum of data
uint16_t rel_page
0x0C, relative page number
uint16_t used_bytes
0x06 bits 6 to 0, used bytes in block
uint8_t valid_chk
0x06 bit 7, checksum valid?
uint32_t abs_page
0x08, 3 bytes, absolute page number
uint8_t reserved
0x02 bits 5 to 0, reserved
uint32_t next_block
0x0E, 3 bytes, next block, 0xFFFFFF if it's last block
uint8_t volume
0x03, disk volume number
uint8_t kind
0x02 bits 7 to 6, kind of info in this block
int16_t file_id
0x04, file ID
uint16_t version
0x00, Lisa OS version number
uint32_t prev_block
0x11, 3 bytes, previous block, 0xFFFFFF if it's first block
uint8_t volume
0x03, disk volume number
int16_t file_id
0x04, file ID
uint16_t version
0x00, Lisa OS version number
uint16_t rel_page
0x06, relative page number
uint16_t next_block
0x08, next block, 0x7FF if it's last block, 0x8000 set if block is valid
uint8_t reserved
0x02 bits 5 to 0, reserved
uint8_t kind
0x02 bits 7 to 6, kind of info in this block
uint16_t prev_block
0x0A, previous block, 0x7FF if it's first block