certain size in one statement.
Patch from Bastiaan Timmer <basjetimmer@yahoo.com>
*/
inline Padding(::FLAC__StreamMetadata *object, bool copy): Prototype(object, copy) { }
+ /** Constructs an object with the given length.
+ */
+ Padding(unsigned length);
+
~Padding();
//@{
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);
};
Prototype(FLAC__metadata_object_new(FLAC__METADATA_TYPE_PADDING), /*copy=*/false)
{ }
+ Padding::Padding(unsigned length):
+ Prototype(FLAC__metadata_object_new(FLAC__METADATA_TYPE_PADDING), /*copy=*/false)
+ {
+ set_length(length);
+ }
+
Padding::~Padding()
{ }