mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2025-09-27 07:20:19 +00:00
push all website files
This commit is contained in:
17
website/functions/node_modules/bytebuffer/src/methods/mark.js
generated
vendored
Normal file
17
website/functions/node_modules/bytebuffer/src/methods/mark.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Marks an offset on this ByteBuffer to be used later.
|
||||
* @param {number=} offset Offset to mark. Defaults to {@link ByteBuffer#offset}.
|
||||
* @returns {!ByteBuffer} this
|
||||
* @throws {TypeError} If `offset` is not a valid number
|
||||
* @throws {RangeError} If `offset` is out of bounds
|
||||
* @see ByteBuffer#reset
|
||||
* @expose
|
||||
*/
|
||||
ByteBufferPrototype.mark = function(offset) {
|
||||
offset = typeof offset === 'undefined' ? this.offset : offset;
|
||||
if (!this.noAssert) {
|
||||
//? ASSERT_OFFSET();
|
||||
}
|
||||
this.markedOffset = offset;
|
||||
return this;
|
||||
};
|
Reference in New Issue
Block a user