18 #ifndef _DECAF_IO_BYTEARRAYINPUTSTREAM_H_ 19 #define _DECAF_IO_BYTEARRAYINPUTSTREAM_H_ 50 const unsigned char* buffer;
144 ByteArrayInputStream(
const unsigned char* buffer,
int bufferSize,
int offset,
int length,
bool own =
false);
159 virtual void setByteArray(
const std::vector<unsigned char>& buffer);
173 virtual void setByteArray(
const unsigned char* buffer,
int bufferSize);
191 virtual void setByteArray(
const unsigned char* buffer,
int bufferSize,
int offset,
int length);
196 virtual int available()
const;
201 virtual long long skip(
long long num);
206 virtual void mark(
int readLimit);
211 virtual void reset();
222 virtual int doReadByte();
224 virtual int doReadArrayBounded(
unsigned char* buffer,
int size,
int offset,
int length);
#define DECAF_API
Definition: Config.h:29
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: AprPool.h:25