18 #ifndef _DECAF_NIO_BUFFER_H_ 19 #define _DECAF_NIO_BUFFER_H_ 146 return this->_capacity;
153 return this->_position;
167 virtual Buffer& position(
int newPosition );
188 virtual Buffer& limit(
int newLimit );
264 return _limit - _position;
274 return remaining() != 0;
282 virtual bool isReadOnly()
const = 0;
A container for data of a specific primitive type.
Definition: Buffer.h:125
int _mark
Definition: Buffer.h:131
virtual int remaining() const
Returns the number of elements between the current position and the limit.
Definition: Buffer.h:263
bool _markSet
Definition: Buffer.h:132
virtual int position() const
Definition: Buffer.h:152
virtual bool hasRemaining() const
Tells whether there are any elements between the current position and the limit.
Definition: Buffer.h:273
virtual ~Buffer()
Definition: Buffer.h:138
virtual int capacity() const
Definition: Buffer.h:145
#define DECAF_API
Definition: Config.h:29
virtual int limit() const
Definition: Buffer.h:172
int _limit
Definition: Buffer.h:130
int _position
Definition: Buffer.h:128
int _capacity
Definition: Buffer.h:129
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: AprPool.h:25