Represents a buffer of Character
s.
no subtypes hierarchy
Constructors | |
CharacterBuffer | Source Codeshared CharacterBuffer({Character*} initialData) Allocates a new |
ofArray | Source Codeshared ofArray(Array<Character> initialArray) Creates a |
ofSize | Source Codeshared ofSize(Integer initialCapacity) Allocates a new zeroed |
Attributes | |
array | Source Codeshared actual Array<Character> array The current underlying Array of the buffer. Any changes made to the buffer will be reflected in this array, and vice versa. Reallocations caused by a call to Refines Buffer.array |
capacity | Source Codeshared actual Integer capacity The underlying array maximum capacity. Both the
Refines Buffer.capacity |
implementation | Source Codeshared actual Object? implementation The platform-specific implementation object, if any. Refines Buffer.implementation |
limit | Source Codeshared actual Integer limit The limit at which to stop reading and writing. The
limit will always be greater or equal to the
Refines Buffer.limit |
position | Source Codeshared actual Integer position The current position index within this buffer. Starts
at Refines Buffer.position |
string | Source Codeshared actual String string |
Inherited Attributes |
Attributes inherited from: Buffer<Element> |
Attributes inherited from: Object |
Methods | |
clear | Source Codeshared actual void clear() Resets the Refines Buffer.clear |
flip | Source Codeshared actual void flip() Flips this buffer after a write operation, so that it is ready to be read. This will and set its Refines Buffer.flip |
get | Source Codeshared actual Character get() Reads an object from this buffer at the current
Refines Buffer.get |
put | Source Codeshared actual void put(Character element) Writes an object to this buffer at the current
Refines Buffer.put |
resize | Source Codeshared actual void resize(Integer newSize, Boolean growLimit) Resizes the underlying array, by growing or shrinking it. This implies a new array allocation and copy. The The If you are growing the array, the Refines Buffer.resize |
Inherited Methods |
Methods inherited from: Buffer<Element> |
Methods inherited from: Object |