summaryrefslogtreecommitdiff
path: root/include/FLAC++
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2012-09-11 15:52:24 +1000
committerErik de Castro Lopo <erikd@mega-nerd.com>2012-09-11 15:52:24 +1000
commitb21f19086176888b348884acd134cba03f324e1b (patch)
treef80ec2e4b9ae57b7d7f4213451652893acbd2750 /include/FLAC++
parent8d9e5c6e8e532207b839231a3dc6592272685d5a (diff)
downloadflac-b21f19086176888b348884acd134cba03f324e1b.tar.gz
Add a convenience function to create a Metadata::Padding object with a
certain size in one statement. Patch from Bastiaan Timmer <basjetimmer@yahoo.com>
Diffstat (limited to 'include/FLAC++')
-rw-r--r--include/FLAC++/metadata.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/FLAC++/metadata.h b/include/FLAC++/metadata.h
index 90bf1980..bbf4e891 100644
--- a/include/FLAC++/metadata.h
+++ b/include/FLAC++/metadata.h
@@ -359,6 +359,10 @@ namespace FLAC {
*/
inline Padding(::FLAC__StreamMetadata *object, bool copy): Prototype(object, copy) { }
+ /** Constructs an object with the given length.
+ */
+ Padding(unsigned length);
+
~Padding();
//@{
@@ -387,6 +391,8 @@ namespace FLAC {
inline bool operator!=(const ::FLAC__StreamMetadata *object) const { return Prototype::operator!=(object); }
//@}
+ /** Sets the length in bytes of the padding block.
+ */
void set_length(unsigned length);
};