mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2025-03-19 11:35:19 +00:00
10 lines
361 B
JavaScript
10 lines
361 B
JavaScript
|
/**
|
||
|
* Gets the number of remaining readable bytes. Contents are the bytes between {@link ByteBuffer#offset} and
|
||
|
* {@link ByteBuffer#limit}, so this returns `limit - offset`.
|
||
|
* @returns {number} Remaining readable bytes. May be negative if `offset > limit`.
|
||
|
* @expose
|
||
|
*/
|
||
|
ByteBufferPrototype.remaining = function() {
|
||
|
return this.limit - this.offset;
|
||
|
};
|