ptformat: Update to 877fa28 - more endian resilient && pt5 fixes
This commit is contained in:
parent
f28ccd5e3a
commit
6c8abb26c8
File diff suppressed because it is too large
Load Diff
@ -153,12 +153,18 @@ public:
|
|||||||
unsigned char c1;
|
unsigned char c1;
|
||||||
unsigned char *ptfunxored;
|
unsigned char *ptfunxored;
|
||||||
uint64_t len;
|
uint64_t len;
|
||||||
|
bool is_bigendian;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool jumpback(uint32_t *currpos, unsigned char *buf, const uint32_t maxoffset, const unsigned char *needle, const uint32_t needlelen);
|
bool jumpback(uint32_t *currpos, unsigned char *buf, const uint32_t maxoffset, const unsigned char *needle, const uint32_t needlelen);
|
||||||
bool jumpto(uint32_t *currpos, unsigned char *buf, const uint32_t maxoffset, const unsigned char *needle, const uint32_t needlelen);
|
bool jumpto(uint32_t *currpos, unsigned char *buf, const uint32_t maxoffset, const unsigned char *needle, const uint32_t needlelen);
|
||||||
bool foundin(std::string haystack, std::string needle);
|
bool foundin(std::string haystack, std::string needle);
|
||||||
int64_t foundat(unsigned char *haystack, uint64_t n, const char *needle);
|
int64_t foundat(unsigned char *haystack, uint64_t n, const char *needle);
|
||||||
|
uint16_t u_endian_read2(unsigned char *buf, bool);
|
||||||
|
uint32_t u_endian_read3(unsigned char *buf, bool);
|
||||||
|
uint32_t u_endian_read4(unsigned char *buf, bool);
|
||||||
|
uint64_t u_endian_read5(unsigned char *buf, bool);
|
||||||
|
|
||||||
int parse(void);
|
int parse(void);
|
||||||
bool parse_version();
|
bool parse_version();
|
||||||
uint8_t gen_xor_delta(uint8_t xor_value, uint8_t mul, bool negative);
|
uint8_t gen_xor_delta(uint8_t xor_value, uint8_t mul, bool negative);
|
||||||
@ -182,6 +188,7 @@ private:
|
|||||||
std::vector<wav_t> actualwavs;
|
std::vector<wav_t> actualwavs;
|
||||||
float ratefactor;
|
float ratefactor;
|
||||||
std::string extension;
|
std::string extension;
|
||||||
|
uint32_t upto;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user