appendInt4 method
Converts four bytes from the read buffer to a signed int.
The byte order is big-endian.
@return the int value.
Implementation
void appendInt4(int value) {
this._bufferPosition += 4;
_ensureBuffer();
if (value >= 0) {
_bufferData.add((value >> 24) & 0x7f);
_bufferData.add((value >> 16) & 0xff);
_bufferData.add((value >> 8) & 0xff);
_bufferData.add((value) & 0xff);
} else {
_bufferData.add((value >> 24) & 0x7f | 0x80);
_bufferData.add((value >> 16) & 0xff);
_bufferData.add((value >> 8) & 0xff);
_bufferData.add((value) & 0xff);
}
}