18 #ifndef _DECAF_INTERNAL_NIO_CHARARRAYBUFFER_H_ 19 #define _DECAF_INTERNAL_NIO_CHARARRAYBUFFER_H_ 86 CharArrayBuffer(
char* array,
int size,
int offset,
int length,
bool readOnly =
false );
106 int offset,
int length,
bool readOnly =
false );
125 virtual char* array();
130 virtual int arrayOffset();
135 virtual CharBuffer* asReadOnlyBuffer()
const;
140 virtual CharBuffer& compact();
145 virtual CharBuffer* duplicate();
155 virtual char get(
int index )
const;
166 return this->readOnly;
172 virtual CharBuffer& put(
char value );
177 virtual CharBuffer& put(
int index,
char value );
182 virtual CharBuffer* slice()
const;
198 this->readOnly = value;
decaf::lang::Pointer< ByteArrayAdapter > _array
Definition: CharArrayBuffer.h:41
A CharSequence is a readable sequence of char values.
Definition: CharSequence.h:36
virtual bool isReadOnly() const
Tells whether or not this buffer is read-only.true if, and only if, this buffer is read-only...
Definition: CharArrayBuffer.h:165
int offset
Definition: CharArrayBuffer.h:44
int length
Definition: CharArrayBuffer.h:47
bool readOnly
Definition: CharArrayBuffer.h:50
This class defines four categories of operations upon character buffers:
Definition: CharBuffer.h:65
virtual void setReadOnly(bool value)
Sets this CharArrayBuffer as Read-Only.
Definition: CharArrayBuffer.h:197
This class adapts primitive type arrays to a base byte array so that the classes can inter-operate on...
Definition: ByteArrayAdapter.h:43
Definition: CharArrayBuffer.h:37
#define DECAF_API
Definition: Config.h:29
Decaf's implementation of a Smart Pointer that is a template on a Type and is Thread Safe if the defa...
Definition: Pointer.h:53
virtual bool hasArray() const
Tells whether or not this buffer is backed by an accessible char array.If this method returns true th...
Definition: CharArrayBuffer.h:160
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: AprPool.h:25