In-memory Stream class using ByteVector for its storage.
More...
#include <tbytevectorstream.h>
In-memory Stream class using ByteVector for its storage.
◆ ByteVectorStream() [1/2]
TagLib::ByteVectorStream::ByteVectorStream |
( |
const ByteVector & |
data | ) |
|
◆ ~ByteVectorStream()
TagLib::ByteVectorStream::~ByteVectorStream |
( |
| ) |
|
|
override |
◆ ByteVectorStream() [2/2]
◆ clear()
void TagLib::ByteVectorStream::clear |
( |
| ) |
|
|
overridevirtual |
◆ data()
◆ insert()
void TagLib::ByteVectorStream::insert |
( |
const ByteVector & |
data, |
|
|
offset_t |
start = 0 , |
|
|
size_t |
replace = 0 |
|
) |
| |
|
overridevirtual |
Insert data at position start in the file overwriting replace bytes of the original content.
- Note
- This method is slow since it requires rewriting all of the file after the insertion point.
Implements TagLib::IOStream.
◆ isOpen()
bool TagLib::ByteVectorStream::isOpen |
( |
| ) |
const |
|
overridevirtual |
◆ length()
offset_t TagLib::ByteVectorStream::length |
( |
| ) |
|
|
overridevirtual |
◆ name()
FileName TagLib::ByteVectorStream::name |
( |
| ) |
const |
|
overridevirtual |
◆ operator=()
◆ readBlock()
ByteVector TagLib::ByteVectorStream::readBlock |
( |
size_t |
length | ) |
|
|
overridevirtual |
Reads a block of size length at the current get pointer.
Implements TagLib::IOStream.
◆ readOnly()
bool TagLib::ByteVectorStream::readOnly |
( |
| ) |
const |
|
overridevirtual |
◆ removeBlock()
void TagLib::ByteVectorStream::removeBlock |
( |
offset_t |
start = 0 , |
|
|
size_t |
length = 0 |
|
) |
| |
|
overridevirtual |
Removes a block of the file starting a start and continuing for length bytes.
- Note
- This method is slow since it involves rewriting all of the file after the removed portion.
Implements TagLib::IOStream.
◆ seek()
Move the I/O pointer to offset in the file from position p. This defaults to seeking from the beginning of the file.
- See also
- Position
Implements TagLib::IOStream.
◆ tell()
offset_t TagLib::ByteVectorStream::tell |
( |
| ) |
const |
|
overridevirtual |
◆ truncate()
void TagLib::ByteVectorStream::truncate |
( |
offset_t |
length | ) |
|
|
overridevirtual |
◆ writeBlock()
void TagLib::ByteVectorStream::writeBlock |
( |
const ByteVector & |
data | ) |
|
|
overridevirtual |
Writes the block data at the current get pointer.
- Note
- This should be used instead of using the streaming output operator for a ByteVector. And even this function is significantly slower than doing output with a char[].
Implements TagLib::IOStream.
The documentation for this class was generated from the following file: