TagLib
2.1
|
In-memory Stream class using ByteVector for its storage. More...
#include <tbytevectorstream.h>
Public Member Functions | |
ByteVectorStream (const ByteVector &data) | |
~ByteVectorStream () override | |
ByteVectorStream (const ByteVectorStream &)=delete | |
ByteVectorStream & | operator= (const ByteVectorStream &)=delete |
FileName | name () const override |
ByteVector | readBlock (size_t length) override |
void | writeBlock (const ByteVector &data) override |
void | insert (const ByteVector &data, offset_t start=0, size_t replace=0) override |
void | removeBlock (offset_t start=0, size_t length=0) override |
bool | readOnly () const override |
bool | isOpen () const override |
void | seek (offset_t offset, Position p=Beginning) override |
void | clear () override |
offset_t | tell () const override |
offset_t | length () override |
void | truncate (offset_t length) override |
ByteVector * | data () |
Public Member Functions inherited from TagLib::IOStream | |
IOStream () | |
virtual | ~IOStream () |
IOStream (const IOStream &)=delete | |
IOStream & | operator= (const IOStream &)=delete |
Additional Inherited Members | |
Public Types inherited from TagLib::IOStream | |
enum | Position { Beginning , Current , End } |
In-memory Stream class using ByteVector for its storage.
TagLib::ByteVectorStream::ByteVectorStream | ( | const ByteVector & | data | ) |
Construct a ByteVectorStream from the bytes in data.
References data().
Referenced by ByteVectorStream(), and operator=().
|
override |
Destroys this ByteVectorStream instance.
|
delete |
References ByteVectorStream().
|
overridevirtual |
Does nothing.
Reimplemented from TagLib::IOStream.
ByteVector * TagLib::ByteVectorStream::data | ( | ) |
References TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE.
Referenced by ByteVectorStream(), insert(), and writeBlock().
|
overridevirtual |
Insert data at position start in the file overwriting replace bytes of the original content.
Implements TagLib::IOStream.
References data().
|
overridevirtual |
Returns true
.
Implements TagLib::IOStream.
|
overridevirtual |
Returns the length of the file.
Implements TagLib::IOStream.
Referenced by readBlock(), removeBlock(), and truncate().
|
overridevirtual |
Returns an empty string.
Implements TagLib::IOStream.
|
delete |
References ByteVectorStream().
|
overridevirtual |
Reads a block of size length at the current get pointer.
Implements TagLib::IOStream.
References length().
|
overridevirtual |
Returns false
.
Implements TagLib::IOStream.
|
overridevirtual |
Removes a block of the file starting a start and continuing for length bytes.
Implements TagLib::IOStream.
References length().
Move the I/O pointer to offset in the file from position p. This defaults to seeking from the beginning of the file.
Implements TagLib::IOStream.
References TagLib::IOStream::Beginning.
|
overridevirtual |
Returns the current offset within the file.
Implements TagLib::IOStream.
|
overridevirtual |
|
overridevirtual |
Writes the block data at the current get pointer.
Implements TagLib::IOStream.
References data().