]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - apps/tidep0084.git/blob - example/iot-gateway/node_modules/bytebuffer/src/methods/remaining.js
Initial commit
[apps/tidep0084.git] / example / iot-gateway / node_modules / bytebuffer / src / methods / remaining.js
1 /**
2  * Gets the number of remaining readable bytes. Contents are the bytes between {@link ByteBuffer#offset} and
3  *  {@link ByteBuffer#limit}, so this returns `limit - offset`.
4  * @returns {number} Remaining readable bytes. May be negative if `offset > limit`.
5  * @expose
6  */
7 ByteBufferPrototype.remaining = function() {
8     return this.limit - this.offset;
9 };