18#ifndef _DECAF_NIO_BUFFER_H_
19#define _DECAF_NIO_BUFFER_H_
146 return this->_capacity;
153 return this->_position;
bool _markSet
Definition Buffer.h:132
virtual Buffer & clear()
Clears this buffer.
virtual Buffer & limit(int newLimit)
Sets this buffer's limit.
virtual bool isReadOnly() const =0
Tells whether or not this buffer is read-only.
virtual int remaining() const
Returns the number of elements between the current position and the limit.
Definition Buffer.h:263
Buffer(const Buffer &other)
virtual Buffer & rewind()
Rewinds this buffer.
virtual int limit() const
Definition Buffer.h:172
virtual int capacity() const
Definition Buffer.h:145
virtual Buffer & mark()
Sets this buffer's mark at its position.
int _position
Definition Buffer.h:128
int _mark
Definition Buffer.h:131
virtual ~Buffer()
Definition Buffer.h:138
virtual int position() const
Definition Buffer.h:152
virtual Buffer & reset()
Resets this buffer's position to the previously-marked position.
virtual Buffer & position(int newPosition)
Sets this buffer's position.
virtual bool hasRemaining() const
Tells whether there are any elements between the current position and the limit.
Definition Buffer.h:273
int _capacity
Definition Buffer.h:129
int _limit
Definition Buffer.h:130
virtual Buffer & flip()
Flips this buffer.
#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