1#ifndef ZYPPNG_IO_IOBUFFER_P_H
2#define ZYPPNG_IO_IOBUFFER_P_H
4#include <zypp-core/zyppng/core/ByteArray>
22 const char *
data ()
const {
29 int64_t
len ()
const {
41 int64_t
discard( int64_t bytes );
42 void chop ( int64_t bytes );
43 void append (
const char *data, int64_t count );
45 int64_t
read (
char *buffer, int64_t max );
46 int64_t
size ( )
const;
47 std::vector<Chunk>::size_type
chunks ()
const;
49 int64_t
indexOf (
const char c, int64_t maxCount, int64_t pos = 0 )
const;
51 int64_t
readUntil(
char *buffer,
const char delim, int64_t max );
53 int64_t
readLine(
char *buffer, int64_t max );
std::vector< Chunk > _chunks
ByteArray readUntil(const char delim, const int64_t max=0)
bool canReadUntil(const char delim) const
int64_t _defaultChunkSize
ByteArray readLine(const int64_t max=0)
std::vector< Chunk >::size_type chunks() const
int64_t read(char *buffer, int64_t max)
void append(const char *data, int64_t count)
int64_t indexOf(const char c) const
char * reserve(int64_t bytes)
IOBuffer(int64_t chunkSize=0)
int64_t discard(int64_t bytes)
int64_t frontSize() const
int64_t available() const
const char * data() const