31 #ifndef BYTE_MANAGER_H_ 32 #define BYTE_MANAGER_H_
uint8_t Byte_t
Definition: byte_manager.h:37
int64_t OPJ_OFF_T
Definition: openjpeg.h:130
Byte4_t fetch_4bytebigendian(int fd, OPJ_OFF_T offset)
fetch a 4-byte big endian Byte codes in file stream
Definition: byte_manager.c:109
Byte4_t big4(Byte_t *buf)
convert 4-byte big endian Byte codes to number
Definition: byte_manager.c:147
void modify_4Bytecode(Byte4_t code, Byte_t *stream)
modify 4Byte code in a codestream
Definition: byte_manager.c:159
Byte2_t big2(Byte_t *buf)
convert 2-byte big endian Byte codes to number
Definition: byte_manager.c:142
Byte_t fetch_1byte(int fd, OPJ_OFF_T offset)
fetch a 1-byte Byte codes in file stream
Definition: byte_manager.c:75
size_t OPJ_SIZE_T
Definition: openjpeg.h:133
Byte8_t big8(Byte_t *buf)
convert 8-byte big endian Byte codes to number
Definition: byte_manager.c:153
OPJ_OFF_T get_filesize(int fd)
Get file size.
Definition: byte_manager.c:167
uint32_t Byte4_t
Definition: byte_manager.h:39
Byte2_t fetch_2bytebigendian(int fd, OPJ_OFF_T offset)
fetch a 2-byte big endian Byte codes in file stream
Definition: byte_manager.c:93
Byte8_t fetch_8bytebigendian(int fd, OPJ_OFF_T offset)
fetch a 8-byte big endian Byte codes in file stream
Definition: byte_manager.c:125
Byte_t * fetch_bytes(int fd, OPJ_OFF_T offset, OPJ_SIZE_T size)
fetch bytes of data in file stream
Definition: byte_manager.c:52
uint64_t Byte8_t
Definition: byte_manager.h:40
uint16_t Byte2_t
Definition: byte_manager.h:38