DTSC getInt is now uint64_t instead of int
This commit is contained in:
parent
3446d022e8
commit
e8db89319a
2 changed files with 6 additions and 6 deletions
|
@ -120,8 +120,8 @@ namespace DTSC {
|
|||
void genericFill(long long packTime, long long packOffset, long long packTrack, const char * packData, long long packDataSize, uint64_t packBytePos, bool isKeyframe);
|
||||
void getString(const char * identifier, char *& result, unsigned int & len) const;
|
||||
void getString(const char * identifier, std::string & result) const;
|
||||
void getInt(const char * identifier, int & result) const;
|
||||
int getInt(const char * identifier) const;
|
||||
void getInt(const char * identifier, uint64_t & result) const;
|
||||
uint64_t getInt(const char * identifier) const;
|
||||
void getFlag(const char * identifier, bool & result) const;
|
||||
bool getFlag(const char * identifier) const;
|
||||
bool hasMember(const char * identifier) const;
|
||||
|
|
|
@ -415,15 +415,15 @@ namespace DTSC {
|
|||
///\brief Retrieves a single parameter as an integer
|
||||
///\param identifier The name of the parameter
|
||||
///\param result The result is stored in this integer
|
||||
void Packet::getInt(const char * identifier, int & result) const {
|
||||
void Packet::getInt(const char * identifier, uint64_t & result) const {
|
||||
result = getScan().getMember(identifier).asInt();
|
||||
}
|
||||
|
||||
///\brief Retrieves a single parameter as an integer
|
||||
///\param identifier The name of the parameter
|
||||
///\result The requested parameter as an integer
|
||||
int Packet::getInt(const char * identifier) const {
|
||||
int result;
|
||||
uint64_t Packet::getInt(const char * identifier) const {
|
||||
uint64_t result;
|
||||
getInt(identifier, result);
|
||||
return result;
|
||||
}
|
||||
|
@ -432,7 +432,7 @@ namespace DTSC {
|
|||
///\param identifier The name of the parameter
|
||||
///\param result The result is stored in this boolean
|
||||
void Packet::getFlag(const char * identifier, bool & result) const {
|
||||
int result_;
|
||||
uint64_t result_;
|
||||
getInt(identifier, result_);
|
||||
result = (bool)result_;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue