154
155
* Appends the data to the buffer. If the data is incorrectly formatted, ie, the data should always start with the
155
156
* header, false will be returned and the data will be discarded.
156
157
* @param b - bytes to be appended
158
158
* @param len - the number of bytes to append.
159
159
* @return true if the data was appended correctly. Returns false if the package is incorrect, ie missing header or something, or the length of data is 0