AtBuffer<T> class abstract

Class holder for message of different data types(int, String etc.,)

Implementers

Constructors

AtBuffer()

Properties

capacity int?
maximum data the buffer can hold. If length() of the buffer exceeds this value, AtBufferOverFlowException will be thrown on calling append(data)
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
message ↔ T?
Message that is stored in the buffer
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
terminatingChar ↔ dynamic
Define terminatingChar to indicate end of buffer
getter/setter pair

Methods

append(dynamic data) → void
Appends data to currently stored message to buffer. @param incoming data @returns void @throws AtBufferOverFlowException if length() + data.length > capacity
clear() → void
Clear the message stored in the buffer @returns - void
getData() → T?
Returns the message stored in the buffer @returns message stored
isEnd() bool
True - if message ends with terminatingChar. False - otherwise. @returns - boolean value indicating end of buffer
isFull() bool
True - is current capacity is greater than or equal to defined capacity. False - otherwise @returns - boolean value indicating whether buffer is full or not.
length() int
Calculate current length of the message store in the buffer @returns - length of the buffer
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited