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:106
Byte4_t big4(Byte_t *buf)
convert 4-byte big endian Byte codes to number
Definition: byte_manager.c:142
void modify_4Bytecode(Byte4_t code, Byte_t *stream)
modify 4Byte code in a codestream
Definition: byte_manager.c:154
Byte2_t big2(Byte_t *buf)
convert 2-byte big endian Byte codes to number
Definition: byte_manager.c:137
Byte_t fetch_1byte(int fd, OPJ_OFF_T offset)
fetch a 1-byte Byte codes in file stream
Definition: byte_manager.c:73
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:148
OPJ_OFF_T get_filesize(int fd)
Get file size.
Definition: byte_manager.c:162
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:91
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:121
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