v1/v2: rename bKeepIntact to bWithDefault for more clarity in the API
git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@123 a6f86f6d-0131-4f8e-9e7b-e335508773d5
This commit is contained in:
@@ -58,7 +58,7 @@ EbmlSInteger::EbmlSInteger(const EbmlSInteger & ElementToClone)
|
||||
/*!
|
||||
\todo handle exception on errors
|
||||
*/
|
||||
filepos_t EbmlSInteger::RenderData(IOCallback & output, bool bForceRender, bool bKeepIntact)
|
||||
filepos_t EbmlSInteger::RenderData(IOCallback & output, bool bForceRender, bool bWithDefault)
|
||||
{
|
||||
binary FinalData[8]; // we don't handle more than 64 bits integers
|
||||
unsigned int i;
|
||||
@@ -77,9 +77,9 @@ filepos_t EbmlSInteger::RenderData(IOCallback & output, bool bForceRender, bool
|
||||
return GetSize();
|
||||
}
|
||||
|
||||
uint64 EbmlSInteger::UpdateSize(bool bKeepIntact, bool bForceRender)
|
||||
uint64 EbmlSInteger::UpdateSize(bool bWithDefault, bool bForceRender)
|
||||
{
|
||||
if (!bKeepIntact && IsDefaultValue())
|
||||
if (!bWithDefault && IsDefaultValue())
|
||||
return 0;
|
||||
|
||||
if (Value <= 0x7F && Value >= (-0x80)) {
|
||||
|
||||
Reference in New Issue
Block a user