mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2025-09-26 23:10:18 +00:00
14 lines
385 B
JavaScript
14 lines
385 B
JavaScript
/**
|
|
* Clears this ByteBuffer's offsets by setting {@link ByteBuffer#offset} to `0` and {@link ByteBuffer#limit} to the
|
|
* backing buffer's capacity. Discards {@link ByteBuffer#markedOffset}.
|
|
* @returns {!ByteBuffer} this
|
|
* @expose
|
|
*/
|
|
ByteBufferPrototype.clear = function() {
|
|
this.offset = 0;
|
|
this.limit = /*?= CAPACITY */;
|
|
this.markedOffset = -1;
|
|
return this;
|
|
};
|
|
|