mirror of
https://kevinblog.sytes.net/Code/Jibo-Revival-Group/RoboCommander.git
synced 2026-06-15 17:16:01 +00:00
Initial commit
This commit is contained in:
17
node_modules/bytebuffer/src/methods/reset.js
generated
vendored
Normal file
17
node_modules/bytebuffer/src/methods/reset.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Resets this ByteBuffer's {@link ByteBuffer#offset}. If an offset has been marked through {@link ByteBuffer#mark}
|
||||
* before, `offset` will be set to {@link ByteBuffer#markedOffset}, which will then be discarded. If no offset has been
|
||||
* marked, sets `offset = 0`.
|
||||
* @returns {!ByteBuffer} this
|
||||
* @see ByteBuffer#mark
|
||||
* @expose
|
||||
*/
|
||||
ByteBufferPrototype.reset = function() {
|
||||
if (this.markedOffset >= 0) {
|
||||
this.offset = this.markedOffset;
|
||||
this.markedOffset = -1;
|
||||
} else {
|
||||
this.offset = 0;
|
||||
}
|
||||
return this;
|
||||
};
|
||||
Reference in New Issue
Block a user