append method

  1. @override
void append(
  1. dynamic data
)
override

Appends data to currently stored message to buffer. @param incoming data @returns void @throws AtBufferOverFlowException if length() + data.length > capacity

Implementation

@override
void append(var data) {
  if (isOverFlow(data)) {
    throw AtBufferOverFlowException('Byte Buffer Overflow');
  } else {
    _bytesBuilder.add(data);
  }
}