aboutsummaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/smart-buffer
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/smart-buffer')
-rw-r--r--deps/npm/node_modules/smart-buffer/.prettierrc.yaml5
-rw-r--r--deps/npm/node_modules/smart-buffer/build/smartbuffer.js1020
-rw-r--r--deps/npm/node_modules/smart-buffer/build/smartbuffer.js.map2
-rw-r--r--deps/npm/node_modules/smart-buffer/package.json24
-rw-r--r--deps/npm/node_modules/smart-buffer/typings/smartbuffer.d.ts987
5 files changed, 1015 insertions, 1023 deletions
diff --git a/deps/npm/node_modules/smart-buffer/.prettierrc.yaml b/deps/npm/node_modules/smart-buffer/.prettierrc.yaml
new file mode 100644
index 0000000000..9a4f5ed754
--- /dev/null
+++ b/deps/npm/node_modules/smart-buffer/.prettierrc.yaml
@@ -0,0 +1,5 @@
+parser: typescript
+printWidth: 120
+tabWidth: 2
+singleQuote: true
+trailingComma: none \ No newline at end of file
diff --git a/deps/npm/node_modules/smart-buffer/build/smartbuffer.js b/deps/npm/node_modules/smart-buffer/build/smartbuffer.js
index 3e1b95f308..b1fcead2aa 100644
--- a/deps/npm/node_modules/smart-buffer/build/smartbuffer.js
+++ b/deps/npm/node_modules/smart-buffer/build/smartbuffer.js
@@ -7,10 +7,10 @@ const DEFAULT_SMARTBUFFER_SIZE = 4096;
const DEFAULT_SMARTBUFFER_ENCODING = 'utf8';
class SmartBuffer {
/**
- * Creates a new SmartBuffer instance.
- *
- * @param options { SmartBufferOptions } The SmartBufferOptions to apply to this instance.
- */
+ * Creates a new SmartBuffer instance.
+ *
+ * @param options { SmartBufferOptions } The SmartBufferOptions to apply to this instance.
+ */
constructor(options) {
this.length = 0;
this._encoding = DEFAULT_SMARTBUFFER_ENCODING;
@@ -55,13 +55,13 @@ class SmartBuffer {
}
}
/**
- * Creates a new SmartBuffer instance with the provided internal Buffer size and optional encoding.
- *
- * @param size { Number } The size of the internal Buffer.
- * @param encoding { String } The BufferEncoding to use for strings.
- *
- * @return { SmartBuffer }
- */
+ * Creates a new SmartBuffer instance with the provided internal Buffer size and optional encoding.
+ *
+ * @param size { Number } The size of the internal Buffer.
+ * @param encoding { String } The BufferEncoding to use for strings.
+ *
+ * @return { SmartBuffer }
+ */
static fromSize(size, encoding) {
return new this({
size: size,
@@ -69,13 +69,13 @@ class SmartBuffer {
});
}
/**
- * Creates a new SmartBuffer instance with the provided Buffer and optional encoding.
- *
- * @param buffer { Buffer } The Buffer to use as the internal Buffer value.
- * @param encoding { String } The BufferEncoding to use for strings.
- *
- * @return { SmartBuffer }
- */
+ * Creates a new SmartBuffer instance with the provided Buffer and optional encoding.
+ *
+ * @param buffer { Buffer } The Buffer to use as the internal Buffer value.
+ * @param encoding { String } The BufferEncoding to use for strings.
+ *
+ * @return { SmartBuffer }
+ */
static fromBuffer(buff, encoding) {
return new this({
buff: buff,
@@ -83,496 +83,470 @@ class SmartBuffer {
});
}
/**
- * Creates a new SmartBuffer instance with the provided SmartBufferOptions options.
- *
- * @param options { SmartBufferOptions } The options to use when creating the SmartBuffer instance.
- */
+ * Creates a new SmartBuffer instance with the provided SmartBufferOptions options.
+ *
+ * @param options { SmartBufferOptions } The options to use when creating the SmartBuffer instance.
+ */
static fromOptions(options) {
return new this(options);
}
/**
- * Type checking function that determines if an object is a SmartBufferOptions object.
- */
+ * Type checking function that determines if an object is a SmartBufferOptions object.
+ */
static isSmartBufferOptions(options) {
const castOptions = options;
- return castOptions && (castOptions.encoding !== undefined || castOptions.size !== undefined || castOptions.buff !== undefined);
+ return (castOptions &&
+ (castOptions.encoding !== undefined || castOptions.size !== undefined || castOptions.buff !== undefined));
}
// Signed integers
/**
- * Reads an Int8 value from the current read position or an optionally provided offset.
- *
- * @param offset { Number } The offset to read data from (optional)
- * @return { Number }
- */
+ * Reads an Int8 value from the current read position or an optionally provided offset.
+ *
+ * @param offset { Number } The offset to read data from (optional)
+ * @return { Number }
+ */
readInt8(offset) {
return this._readNumberValue(Buffer.prototype.readInt8, 1, offset);
}
/**
- * Reads an Int16BE value from the current read position or an optionally provided offset.
- *
- * @param offset { Number } The offset to read data from (optional)
- * @return { Number }
- */
+ * Reads an Int16BE value from the current read position or an optionally provided offset.
+ *
+ * @param offset { Number } The offset to read data from (optional)
+ * @return { Number }
+ */
readInt16BE(offset) {
return this._readNumberValue(Buffer.prototype.readInt16BE, 2, offset);
}
/**
- * Reads an Int16LE value from the current read position or an optionally provided offset.
- *
- * @param offset { Number } The offset to read data from (optional)
- * @return { Number }
- */
+ * Reads an Int16LE value from the current read position or an optionally provided offset.
+ *
+ * @param offset { Number } The offset to read data from (optional)
+ * @return { Number }
+ */
readInt16LE(offset) {
return this._readNumberValue(Buffer.prototype.readInt16LE, 2, offset);
}
/**
- * Reads an Int32BE value from the current read position or an optionally provided offset.
- *
- * @param offset { Number } The offset to read data from (optional)
- * @return { Number }
- */
+ * Reads an Int32BE value from the current read position or an optionally provided offset.
+ *
+ * @param offset { Number } The offset to read data from (optional)
+ * @return { Number }
+ */
readInt32BE(offset) {
return this._readNumberValue(Buffer.prototype.readInt32BE, 4, offset);
}
/**
- * Reads an Int32LE value from the current read position or an optionally provided offset.
- *
- * @param offset { Number } The offset to read data from (optional)
- * @return { Number }
- */
+ * Reads an Int32LE value from the current read position or an optionally provided offset.
+ *
+ * @param offset { Number } The offset to read data from (optional)
+ * @return { Number }
+ */
readInt32LE(offset) {
return this._readNumberValue(Buffer.prototype.readInt32LE, 4, offset);
}
/**
- * Writes an Int8 value to the current write position (or at optional offset).
- *
- * @param value { Number } The value to write.
- * @param offset { Number } The offset to write the value at.
- *
- * @return this
- */
+ * Writes an Int8 value to the current write position (or at optional offset).
+ *
+ * @param value { Number } The value to write.
+ * @param offset { Number } The offset to write the value at.
+ *
+ * @return this
+ */
writeInt8(value, offset) {
this._writeNumberValue(Buffer.prototype.writeInt8, 1, value, offset);
return this;
}
/**
- * Inserts an Int8 value at the given offset value.
- *
- * @param value { Number } The value to insert.
- * @param offset { Number } The offset to insert the value at.
- *
- * @return this
- */
+ * Inserts an Int8 value at the given offset value.
+ *
+ * @param value { Number } The value to insert.
+ * @param offset { Number } The offset to insert the value at.
+ *
+ * @return this
+ */
insertInt8(value, offset) {
- this._insertNumberValue(Buffer.prototype.writeInt8, 1, value, offset);
- return this;
+ return this._insertNumberValue(Buffer.prototype.writeInt8, 1, value, offset);
}
/**
- * Writes an Int16BE value to the current write position (or at optional offset).
- *
- * @param value { Number } The value to write.
- * @param offset { Number } The offset to write the value at.
- *
- * @return this
- */
+ * Writes an Int16BE value to the current write position (or at optional offset).
+ *
+ * @param value { Number } The value to write.
+ * @param offset { Number } The offset to write the value at.
+ *
+ * @return this
+ */
writeInt16BE(value, offset) {
- this._writeNumberValue(Buffer.prototype.writeInt16BE, 2, value, offset);
- return this;
+ return this._writeNumberValue(Buffer.prototype.writeInt16BE, 2, value, offset);
}
/**
- * Inserts an Int16BE value at the given offset value.
- *
- * @param value { Number } The value to insert.
- * @param offset { Number } The offset to insert the value at.
- *
- * @return this
- */
+ * Inserts an Int16BE value at the given offset value.
+ *
+ * @param value { Number } The value to insert.
+ * @param offset { Number } The offset to insert the value at.
+ *
+ * @return this
+ */
insertInt16BE(value, offset) {
- this._insertNumberValue(Buffer.prototype.writeInt16BE, 2, value, offset);
- return this;
+ return this._insertNumberValue(Buffer.prototype.writeInt16BE, 2, value, offset);
}
/**
- * Writes an Int16LE value to the current write position (or at optional offset).
- *
- * @param value { Number } The value to write.
- * @param offset { Number } The offset to write the value at.
- *
- * @return this
- */
+ * Writes an Int16LE value to the current write position (or at optional offset).
+ *
+ * @param value { Number } The value to write.
+ * @param offset { Number } The offset to write the value at.
+ *
+ * @return this
+ */
writeInt16LE(value, offset) {
- this._writeNumberValue(Buffer.prototype.writeInt16LE, 2, value, offset);
- return this;
+ return this._writeNumberValue(Buffer.prototype.writeInt16LE, 2, value, offset);
}
/**
- * Inserts an Int16LE value at the given offset value.
- *
- * @param value { Number } The value to insert.
- * @param offset { Number } The offset to insert the value at.
- *
- * @return this
- */
+ * Inserts an Int16LE value at the given offset value.
+ *
+ * @param value { Number } The value to insert.
+ * @param offset { Number } The offset to insert the value at.
+ *
+ * @return this
+ */
insertInt16LE(value, offset) {
- this._insertNumberValue(Buffer.prototype.writeInt16LE, 2, value, offset);
- return this;
+ return this._insertNumberValue(Buffer.prototype.writeInt16LE, 2, value, offset);
}
/**
- * Writes an Int32BE value to the current write position (or at optional offset).
- *
- * @param value { Number } The value to write.
- * @param offset { Number } The offset to write the value at.
- *
- * @return this
- */
+ * Writes an Int32BE value to the current write position (or at optional offset).
+ *
+ * @param value { Number } The value to write.
+ * @param offset { Number } The offset to write the value at.
+ *
+ * @return this
+ */
writeInt32BE(value, offset) {
- this._writeNumberValue(Buffer.prototype.writeInt32BE, 4, value, offset);
- return this;
+ return this._writeNumberValue(Buffer.prototype.writeInt32BE, 4, value, offset);
}
/**
- * Inserts an Int32BE value at the given offset value.
- *
- * @param value { Number } The value to insert.
- * @param offset { Number } The offset to insert the value at.
- *
- * @return this
- */
+ * Inserts an Int32BE value at the given offset value.
+ *
+ * @param value { Number } The value to insert.
+ * @param offset { Number } The offset to insert the value at.
+ *
+ * @return this
+ */
insertInt32BE(value, offset) {
- this._insertNumberValue(Buffer.prototype.writeInt32BE, 4, value, offset);
- return this;
+ return this._insertNumberValue(Buffer.prototype.writeInt32BE, 4, value, offset);
}
/**
- * Writes an Int32LE value to the current write position (or at optional offset).
- *
- * @param value { Number } The value to write.
- * @param offset { Number } The offset to write the value at.
- *
- * @return this
- */
+ * Writes an Int32LE value to the current write position (or at optional offset).
+ *
+ * @param value { Number } The value to write.
+ * @param offset { Number } The offset to write the value at.
+ *
+ * @return this
+ */
writeInt32LE(value, offset) {
- this._writeNumberValue(Buffer.prototype.writeInt32LE, 4, value, offset);
- return this;
+ return this._writeNumberValue(Buffer.prototype.writeInt32LE, 4, value, offset);
}
/**
- * Inserts an Int32LE value at the given offset value.
- *
- * @param value { Number } The value to insert.
- * @param offset { Number } The offset to insert the value at.
- *
- * @return this
- */
+ * Inserts an Int32LE value at the given offset value.
+ *
+ * @param value { Number } The value to insert.
+ * @param offset { Number } The offset to insert the value at.
+ *
+ * @return this
+ */
insertInt32LE(value, offset) {
- this._insertNumberValue(Buffer.prototype.writeInt32LE, 4, value, offset);
- return this;
+ return this._insertNumberValue(Buffer.prototype.writeInt32LE, 4, value, offset);
}
// Unsigned Integers
/**
- * Reads an UInt8 value from the current read position or an optionally provided offset.
- *
- * @param offset { Number } The offset to read data from (optional)
- * @return { Number }
- */
+ * Reads an UInt8 value from the current read position or an optionally provided offset.
+ *
+ * @param offset { Number } The offset to read data from (optional)
+ * @return { Number }
+ */
readUInt8(offset) {
return this._readNumberValue(Buffer.prototype.readUInt8, 1, offset);
}
/**
- * Reads an UInt16BE value from the current read position or an optionally provided offset.
- *
- * @param offset { Number } The offset to read data from (optional)
- * @return { Number }
- */
+ * Reads an UInt16BE value from the current read position or an optionally provided offset.
+ *
+ * @param offset { Number } The offset to read data from (optional)
+ * @return { Number }
+ */
readUInt16BE(offset) {
return this._readNumberValue(Buffer.prototype.readUInt16BE, 2, offset);
}
/**
- * Reads an UInt16LE value from the current read position or an optionally provided offset.
- *
- * @param offset { Number } The offset to read data from (optional)
- * @return { Number }
- */
+ * Reads an UInt16LE value from the current read position or an optionally provided offset.
+ *
+ * @param offset { Number } The offset to read data from (optional)
+ * @return { Number }
+ */
readUInt16LE(offset) {
return this._readNumberValue(Buffer.prototype.readUInt16LE, 2, offset);
}
/**
- * Reads an UInt32BE value from the current read position or an optionally provided offset.
- *
- * @param offset { Number } The offset to read data from (optional)
- * @return { Number }
- */
+ * Reads an UInt32BE value from the current read position or an optionally provided offset.
+ *
+ * @param offset { Number } The offset to read data from (optional)
+ * @return { Number }
+ */
readUInt32BE(offset) {
return this._readNumberValue(Buffer.prototype.readUInt32BE, 4, offset);
}
/**
- * Reads an UInt32LE value from the current read position or an optionally provided offset.
- *
- * @param offset { Number } The offset to read data from (optional)
- * @return { Number }
- */
+ * Reads an UInt32LE value from the current read position or an optionally provided offset.
+ *
+ * @param offset { Number } The offset to read data from (optional)
+ * @return { Number }
+ */
readUInt32LE(offset) {
return this._readNumberValue(Buffer.prototype.readUInt32LE, 4, offset);
}
/**
- * Writes an UInt8 value to the current write position (or at optional offset).
- *
- * @param value { Number } The value to write.
- * @param offset { Number } The offset to write the value at.
- *
- * @return this
- */
+ * Writes an UInt8 value to the current write position (or at optional offset).
+ *
+ * @param value { Number } The value to write.
+ * @param offset { Number } The offset to write the value at.
+ *
+ * @return this
+ */
writeUInt8(value, offset) {
- this._writeNumberValue(Buffer.prototype.writeUInt8, 1, value, offset);
- return this;
+ return this._writeNumberValue(Buffer.prototype.writeUInt8, 1, value, offset);
}
/**
- * Inserts an UInt8 value at the given offset value.
- *
- * @param value { Number } The value to insert.
- * @param offset { Number } The offset to insert the value at.
- *
- * @return this
- */
+ * Inserts an UInt8 value at the given offset value.
+ *
+ * @param value { Number } The value to insert.
+ * @param offset { Number } The offset to insert the value at.
+ *
+ * @return this
+ */
insertUInt8(value, offset) {
- this._insertNumberValue(Buffer.prototype.writeUInt8, 1, value, offset);
- return this;
+ return this._insertNumberValue(Buffer.prototype.writeUInt8, 1, value, offset);
}
/**
- * Writes an UInt16BE value to the current write position (or at optional offset).
- *
- * @param value { Number } The value to write.
- * @param offset { Number } The offset to write the value at.
- *
- * @return this
- */
+ * Writes an UInt16BE value to the current write position (or at optional offset).
+ *
+ * @param value { Number } The value to write.
+ * @param offset { Number } The offset to write the value at.
+ *
+ * @return this
+ */
writeUInt16BE(value, offset) {
- this._writeNumberValue(Buffer.prototype.writeUInt16BE, 2, value, offset);
- return this;
+ return this._writeNumberValue(Buffer.prototype.writeUInt16BE, 2, value, offset);
}
/**
- * Inserts an UInt16BE value at the given offset value.
- *
- * @param value { Number } The value to insert.
- * @param offset { Number } The offset to insert the value at.
- *
- * @return this
- */
+ * Inserts an UInt16BE value at the given offset value.
+ *
+ * @param value { Number } The value to insert.
+ * @param offset { Number } The offset to insert the value at.
+ *
+ * @return this
+ */
insertUInt16BE(value, offset) {
- this._insertNumberValue(Buffer.prototype.writeUInt16BE, 2, value, offset);
- return this;
+ return this._insertNumberValue(Buffer.prototype.writeUInt16BE, 2, value, offset);
}
/**
- * Writes an UInt16LE value to the current write position (or at optional offset).
- *
- * @param value { Number } The value to write.
- * @param offset { Number } The offset to write the value at.
- *
- * @return this
- */
+ * Writes an UInt16LE value to the current write position (or at optional offset).
+ *
+ * @param value { Number } The value to write.
+ * @param offset { Number } The offset to write the value at.
+ *
+ * @return this
+ */
writeUInt16LE(value, offset) {
- this._writeNumberValue(Buffer.prototype.writeUInt16LE, 2, value, offset);
- return this;
+ return this._writeNumberValue(Buffer.prototype.writeUInt16LE, 2, value, offset);
}
/**
- * Inserts an UInt16LE value at the given offset value.
- *
- * @param value { Number } The value to insert.
- * @param offset { Number } The offset to insert the value at.
- *
- * @return this
- */
+ * Inserts an UInt16LE value at the given offset value.
+ *
+ * @param value { Number } The value to insert.
+ * @param offset { Number } The offset to insert the value at.
+ *
+ * @return this
+ */
insertUInt16LE(value, offset) {
- this._insertNumberValue(Buffer.prototype.writeUInt16LE, 2, value, offset);
- return this;
+ return this._insertNumberValue(Buffer.prototype.writeUInt16LE, 2, value, offset);
}
/**
- * Writes an UInt32BE value to the current write position (or at optional offset).
- *
- * @param value { Number } The value to write.
- * @param offset { Number } The offset to write the value at.
- *
- * @return this
- */
+ * Writes an UInt32BE value to the current write position (or at optional offset).
+ *
+ * @param value { Number } The value to write.
+ * @param offset { Number } The offset to write the value at.
+ *
+ * @return this
+ */
writeUInt32BE(value, offset) {
- this._writeNumberValue(Buffer.prototype.writeUInt32BE, 4, value, offset);
- return this;
+ return this._writeNumberValue(Buffer.prototype.writeUInt32BE, 4, value, offset);
}
/**
- * Inserts an UInt32BE value at the given offset value.
- *
- * @param value { Number } The value to insert.
- * @param offset { Number } The offset to insert the value at.
- *
- * @return this
- */
+ * Inserts an UInt32BE value at the given offset value.
+ *
+ * @param value { Number } The value to insert.
+ * @param offset { Number } The offset to insert the value at.
+ *
+ * @return this
+ */
insertUInt32BE(value, offset) {
- this._insertNumberValue(Buffer.prototype.writeUInt32BE, 4, value, offset);
- return this;
+ return this._insertNumberValue(Buffer.prototype.writeUInt32BE, 4, value, offset);
}
/**
- * Writes an UInt32LE value to the current write position (or at optional offset).
- *
- * @param value { Number } The value to write.
- * @param offset { Number } The offset to write the value at.
- *
- * @return this
- */
+ * Writes an UInt32LE value to the current write position (or at optional offset).
+ *
+ * @param value { Number } The value to write.
+ * @param offset { Number } The offset to write the value at.
+ *
+ * @return this
+ */
writeUInt32LE(value, offset) {
- this._writeNumberValue(Buffer.prototype.writeUInt32LE, 4, value, offset);
- return this;
+ return this._writeNumberValue(Buffer.prototype.writeUInt32LE, 4, value, offset);
}
/**
- * Inserts an UInt32LE value at the given offset value.
- *
- * @param value { Number } The value to insert.
- * @param offset { Number } The offset to insert the value at.
- *
- * @return this
- */
+ * Inserts an UInt32LE value at the given offset value.
+ *
+ * @param value { Number } The value to insert.
+ * @param offset { Number } The offset to insert the value at.
+ *
+ * @return this
+ */
insertUInt32LE(value, offset) {
- this._insertNumberValue(Buffer.prototype.writeUInt32LE, 4, value, offset);
- return this;
+ return this._insertNumberValue(Buffer.prototype.writeUInt32LE, 4, value, offset);
}
// Floating Point
/**
- * Reads an FloatBE value from the current read position or an optionally provided offset.
- *
- * @param offset { Number } The offset to read data from (optional)
- * @return { Number }
- */
+ * Reads an FloatBE value from the current read position or an optionally provided offset.
+ *
+ * @param offset { Number } The offset to read data from (optional)
+ * @return { Number }
+ */
readFloatBE(offset) {
return this._readNumberValue(Buffer.prototype.readFloatBE, 4, offset);
}
/**
- * Reads an FloatLE value from the current read position or an optionally provided offset.
- *
- * @param offset { Number } The offset to read data from (optional)
- * @return { Number }
- */
+ * Reads an FloatLE value from the current read position or an optionally provided offset.
+ *
+ * @param offset { Number } The offset to read data from (optional)
+ * @return { Number }
+ */
readFloatLE(offset) {
return this._readNumberValue(Buffer.prototype.readFloatLE, 4, offset);
}
/**
- * Writes a FloatBE value to the current write position (or at optional offset).
- *
- * @param value { Number } The value to write.
- * @param offset { Number } The offset to write the value at.
- *
- * @return this
- */
+ * Writes a FloatBE value to the current write position (or at optional offset).
+ *
+ * @param value { Number } The value to write.
+ * @param offset { Number } The offset to write the value at.
+ *
+ * @return this
+ */
writeFloatBE(value, offset) {
- this._writeNumberValue(Buffer.prototype.writeFloatBE, 4, value, offset);
- return this;
+ return this._writeNumberValue(Buffer.prototype.writeFloatBE, 4, value, offset);
}
/**
- * Inserts a FloatBE value at the given offset value.
- *
- * @param value { Number } The value to insert.
- * @param offset { Number } The offset to insert the value at.
- *
- * @return this
- */
+ * Inserts a FloatBE value at the given offset value.
+ *
+ * @param value { Number } The value to insert.
+ * @param offset { Number } The offset to insert the value at.
+ *
+ * @return this
+ */
insertFloatBE(value, offset) {
- this._insertNumberValue(Buffer.prototype.writeFloatBE, 4, value, offset);
- return this;
+ return this._insertNumberValue(Buffer.prototype.writeFloatBE, 4, value, offset);
}
/**
- * Writes a FloatLE value to the current write position (or at optional offset).
- *
- * @param value { Number } The value to write.
- * @param offset { Number } The offset to write the value at.
- *
- * @return this
- */
+ * Writes a FloatLE value to the current write position (or at optional offset).
+ *
+ * @param value { Number } The value to write.
+ * @param offset { Number } The offset to write the value at.
+ *
+ * @return this
+ */
writeFloatLE(value, offset) {
- this._writeNumberValue(Buffer.prototype.writeFloatLE, 4, value, offset);
- return this;
+ return this._writeNumberValue(Buffer.prototype.writeFloatLE, 4, value, offset);
}
/**
- * Inserts a FloatLE value at the given offset value.
- *
- * @param value { Number } The value to insert.
- * @param offset { Number } The offset to insert the value at.
- *
- * @return this
- */
+ * Inserts a FloatLE value at the given offset value.
+ *
+ * @param value { Number } The value to insert.
+ * @param offset { Number } The offset to insert the value at.
+ *
+ * @return this
+ */
insertFloatLE(value, offset) {
- this._insertNumberValue(Buffer.prototype.writeFloatLE, 4, value, offset);
- return this;
+ return this._insertNumberValue(Buffer.prototype.writeFloatLE, 4, value, offset);
}
// Double Floating Point
/**
- * Reads an DoublEBE value from the current read position or an optionally provided offset.
- *
- * @param offset { Number } The offset to read data from (optional)
- * @return { Number }
- */
+ * Reads an DoublEBE value from the current read position or an optionally provided offset.
+ *
+ * @param offset { Number } The offset to read data from (optional)
+ * @return { Number }
+ */
readDoubleBE(offset) {
return this._readNumberValue(Buffer.prototype.readDoubleBE, 8, offset);
}
/**
- * Reads an DoubleLE value from the current read position or an optionally provided offset.
- *
- * @param offset { Number } The offset to read data from (optional)
- * @return { Number }
- */
+ * Reads an DoubleLE value from the current read position or an optionally provided offset.
+ *
+ * @param offset { Number } The offset to read data from (optional)
+ * @return { Number }
+ */
readDoubleLE(offset) {
return this._readNumberValue(Buffer.prototype.readDoubleLE, 8, offset);
}
/**
- * Writes a DoubleBE value to the current write position (or at optional offset).
- *
- * @param value { Number } The value to write.
- * @param offset { Number } The offset to write the value at.
- *
- * @return this
- */
+ * Writes a DoubleBE value to the current write position (or at optional offset).
+ *
+ * @param value { Number } The value to write.
+ * @param offset { Number } The offset to write the value at.
+ *
+ * @return this
+ */
writeDoubleBE(value, offset) {
- this._writeNumberValue(Buffer.prototype.writeDoubleBE, 8, value, offset);
- return this;
+ return this._writeNumberValue(Buffer.prototype.writeDoubleBE, 8, value, offset);
}
/**
- * Inserts a DoubleBE value at the given offset value.
- *
- * @param value { Number } The value to insert.
- * @param offset { Number } The offset to insert the value at.
- *
- * @return this
- */
+ * Inserts a DoubleBE value at the given offset value.
+ *
+ * @param value { Number } The value to insert.
+ * @param offset { Number } The offset to insert the value at.
+ *
+ * @return this
+ */
insertDoubleBE(value, offset) {
- this._insertNumberValue(Buffer.prototype.writeDoubleBE, 8, value, offset);
- return this;
+ return this._insertNumberValue(Buffer.prototype.writeDoubleBE, 8, value, offset);
}
/**
- * Writes a DoubleLE value to the current write position (or at optional offset).
- *
- * @param value { Number } The value to write.
- * @param offset { Number } The offset to write the value at.
- *
- * @return this
- */
+ * Writes a DoubleLE value to the current write position (or at optional offset).
+ *
+ * @param value { Number } The value to write.
+ * @param offset { Number } The offset to write the value at.
+ *
+ * @return this
+ */
writeDoubleLE(value, offset) {
- this._writeNumberValue(Buffer.prototype.writeDoubleLE, 8, value, offset);
- return this;
+ return this._writeNumberValue(Buffer.prototype.writeDoubleLE, 8, value, offset);
}
/**
- * Inserts a DoubleLE value at the given offset value.
- *
- * @param value { Number } The value to insert.
- * @param offset { Number } The offset to insert the value at.
- *
- * @return this
- */
+ * Inserts a DoubleLE value at the given offset value.
+ *
+ * @param value { Number } The value to insert.
+ * @param offset { Number } The offset to insert the value at.
+ *
+ * @return this
+ */
insertDoubleLE(value, offset) {
- this._insertNumberValue(Buffer.prototype.writeDoubleLE, 8, value, offset);
- return this;
+ return this._insertNumberValue(Buffer.prototype.writeDoubleLE, 8, value, offset);
}
// Strings
/**
- * Reads a String from the current read position.
- *
- * @param arg1 { Number | String } The number of bytes to read as a String, or the BufferEncoding to use for
- * the string (Defaults to instance level encoding).
- * @param encoding { String } The BufferEncoding to use for the string (Defaults to instance level encoding).
- *
- * @return { String }
- */
+ * Reads a String from the current read position.
+ *
+ * @param arg1 { Number | String } The number of bytes to read as a String, or the BufferEncoding to use for
+ * the string (Defaults to instance level encoding).
+ * @param encoding { String } The BufferEncoding to use for the string (Defaults to instance level encoding).
+ *
+ * @return { String }
+ */
readString(arg1, encoding) {
let lengthVal;
// Length provided
@@ -593,33 +567,37 @@ class SmartBuffer {
return value;
}
/**
- * Inserts a String
- *
- * @param value { String } The String value to insert.
- * @param offset { Number } The offset to insert the string at.
- * @param encoding { String } The BufferEncoding to use for writing strings (defaults to instance encoding).
- */
+ * Inserts a String
+ *
+ * @param value { String } The String value to insert.
+ * @param offset { Number } The offset to insert the string at.
+ * @param encoding { String } The BufferEncoding to use for writing strings (defaults to instance encoding).
+ *
+ * @return this
+ */
insertString(value, offset, encoding) {
utils_1.checkOffsetValue(offset);
return this._handleString(value, true, offset, encoding);
}
/**
- * Writes a String
- *
- * @param value { String } The String value to write.
- * @param arg2 { Number | String } The offset to write the string at, or the BufferEncoding to use.
- * @param encoding { String } The BufferEncoding to use for writing strings (defaults to instance encoding).
- */
+ * Writes a String
+ *
+ * @param value { String } The String value to write.
+ * @param arg2 { Number | String } The offset to write the string at, or the BufferEncoding to use.
+ * @param encoding { String } The BufferEncoding to use for writing strings (defaults to instance encoding).
+ *
+ * @return this
+ */
writeString(value, arg2, encoding) {
return this._handleString(value, false, arg2, encoding);
}
/**
- * Reads a null-terminated String from the current read position.
- *
- * @param encoding { String } The BufferEncoding to use for the string (Defaults to instance level encoding).
- *
- * @return { String }
- */
+ * Reads a null-terminated String from the current read position.
+ *
+ * @param encoding { String } The BufferEncoding to use for the string (Defaults to instance level encoding).
+ *
+ * @return { String }
+ */
readStringNT(encoding) {
if (typeof encoding !== 'undefined') {
utils_1.checkEncoding(encoding);
@@ -640,38 +618,44 @@ class SmartBuffer {
return value.toString(encoding || this._encoding);
}
/**
- * Inserts a null-terminated String.
- *
- * @param value { String } The String value to write.
- * @param arg2 { Number | String } The offset to write the string to, or the BufferEncoding to use.
- * @param encoding { String } The BufferEncoding to use for writing strings (defaults to instance encoding).
- */
+ * Inserts a null-terminated String.
+ *
+ * @param value { String } The String value to write.
+ * @param arg2 { Number | String } The offset to write the string to, or the BufferEncoding to use.
+ * @param encoding { String } The BufferEncoding to use for writing strings (defaults to instance encoding).
+ *
+ * @return this
+ */
insertStringNT(value, offset, encoding) {
utils_1.checkOffsetValue(offset);
// Write Values
this.insertString(value, offset, encoding);
this.insertUInt8(0x00, offset + value.length);
+ return this;
}
/**
- * Writes a null-terminated String.
- *
- * @param value { String } The String value to write.
- * @param arg2 { Number | String } The offset to write the string to, or the BufferEncoding to use.
- * @param encoding { String } The BufferEncoding to use for writing strings (defaults to instance encoding).
- */
+ * Writes a null-terminated String.
+ *
+ * @param value { String } The String value to write.
+ * @param arg2 { Number | String } The offset to write the string to, or the BufferEncoding to use.
+ * @param encoding { String } The BufferEncoding to use for writing strings (defaults to instance encoding).
+ *
+ * @return this
+ */
writeStringNT(value, arg2, encoding) {
// Write Values
this.writeString(value, arg2, encoding);
this.writeUInt8(0x00, typeof arg2 === 'number' ? arg2 + value.length : this.writeOffset);
+ return this;
}
// Buffers
/**
- * Reads a Buffer from the internal read position.
- *
- * @param length { Number } The length of data to read as a Buffer.
- *
- * @return { Buffer }
- */
+ * Reads a Buffer from the internal read position.
+ *
+ * @param length { Number } The length of data to read as a Buffer.
+ *
+ * @return { Buffer }
+ */
readBuffer(length) {
if (typeof length !== 'undefined') {
utils_1.checkLengthValue(length);
@@ -685,29 +669,33 @@ class SmartBuffer {
return value;
}
/**
- * Writes a Buffer to the current write position.
- *
- * @param value { Buffer } The Buffer to write.
- * @param offset { Number } The offset to write the Buffer to.
- */
+ * Writes a Buffer to the current write position.
+ *
+ * @param value { Buffer } The Buffer to write.
+ * @param offset { Number } The offset to write the Buffer to.
+ *
+ * @return this
+ */
insertBuffer(value, offset) {
utils_1.checkOffsetValue(offset);
return this._handleBuffer(value, true, offset);
}
/**
- * Writes a Buffer to the current write position.
- *
- * @param value { Buffer } The Buffer to write.
- * @param offset { Number } The offset to write the Buffer to.
- */
+ * Writes a Buffer to the current write position.
+ *
+ * @param value { Buffer } The Buffer to write.
+ * @param offset { Number } The offset to write the Buffer to.
+ *
+ * @return this
+ */
writeBuffer(value, offset) {
return this._handleBuffer(value, false, offset);
}
/**
- * Reads a null-terminated Buffer from the current read poisiton.
- *
- * @return { Buffer }
- */
+ * Reads a null-terminated Buffer from the current read poisiton.
+ *
+ * @return { Buffer }
+ */
readBufferNT() {
// Set null character position to the end SmartBuffer instance.
let nullPos = this.length;
@@ -725,11 +713,13 @@ class SmartBuffer {
return value;
}
/**
- * Inserts a null-terminated Buffer.
- *
- * @param value { Buffer } The Buffer to write.
- * @param offset { Number } The offset to write the Buffer to.
- */
+ * Inserts a null-terminated Buffer.
+ *
+ * @param value { Buffer } The Buffer to write.
+ * @param offset { Number } The offset to write the Buffer to.
+ *
+ * @return this
+ */
insertBufferNT(value, offset) {
utils_1.checkOffsetValue(offset);
// Write Values
@@ -738,11 +728,13 @@ class SmartBuffer {
return this;
}
/**
- * Writes a null-terminated Buffer.
- *
- * @param value { Buffer } The Buffer to write.
- * @param offset { Number } The offset to write the Buffer to.
- */
+ * Writes a null-terminated Buffer.
+ *
+ * @param value { Buffer } The Buffer to write.
+ * @param offset { Number } The offset to write the Buffer to.
+ *
+ * @return this
+ */
writeBufferNT(value, offset) {
// Checks for valid numberic value;
if (typeof offset !== 'undefined') {
@@ -754,8 +746,8 @@ class SmartBuffer {
return this;
}
/**
- * Clears the SmartBuffer instance to its original empty state.
- */
+ * Clears the SmartBuffer instance to its original empty state.
+ */
clear() {
this._writeOffset = 0;
this._readOffset = 0;
@@ -763,26 +755,26 @@ class SmartBuffer {
return this;
}
/**
- * Gets the remaining data left to be read from the SmartBuffer instance.
- *
- * @return { Number }
- */
+ * Gets the remaining data left to be read from the SmartBuffer instance.
+ *
+ * @return { Number }
+ */
remaining() {
return this.length - this._readOffset;
}
/**
- * Gets the current read offset value of the SmartBuffer instance.
- *
- * @return { Number }
- */
+ * Gets the current read offset value of the SmartBuffer instance.
+ *
+ * @return { Number }
+ */
get readOffset() {
return this._readOffset;
}
/**
- * Sets the read offset value of the SmartBuffer instance.
- *
- * @param offset { Number } - The offset value to set.
- */
+ * Sets the read offset value of the SmartBuffer instance.
+ *
+ * @param offset { Number } - The offset value to set.
+ */
set readOffset(offset) {
utils_1.checkOffsetValue(offset);
// Check for bounds.
@@ -790,18 +782,18 @@ class SmartBuffer {
this._readOffset = offset;
}
/**
- * Gets the current write offset value of the SmartBuffer instance.
- *
- * @return { Number }
- */
+ * Gets the current write offset value of the SmartBuffer instance.
+ *
+ * @return { Number }
+ */
get writeOffset() {
return this._writeOffset;
}
/**
- * Sets the write offset value of the SmartBuffer instance.
- *
- * @param offset { Number } - The offset value to set.
- */
+ * Sets the write offset value of the SmartBuffer instance.
+ *
+ * @param offset { Number } - The offset value to set.
+ */
set writeOffset(offset) {
utils_1.checkOffsetValue(offset);
// Check for bounds.
@@ -809,43 +801,43 @@ class SmartBuffer {
this._writeOffset = offset;
}
/**
- * Gets the currently set string encoding of the SmartBuffer instance.
- *
- * @return { BufferEncoding } The string Buffer encoding currently set.
- */
+ * Gets the currently set string encoding of the SmartBuffer instance.
+ *
+ * @return { BufferEncoding } The string Buffer encoding currently set.
+ */
get encoding() {
return this._encoding;
}
/**
- * Sets the string encoding of the SmartBuffer instance.
- *
- * @param encoding { BufferEncoding } The string Buffer encoding to set.
- */
+ * Sets the string encoding of the SmartBuffer instance.
+ *
+ * @param encoding { BufferEncoding } The string Buffer encoding to set.
+ */
set encoding(encoding) {
utils_1.checkEncoding(encoding);
this._encoding = encoding;
}
/**
- * Gets the underlying internal Buffer. (This includes unmanaged data in the Buffer)
- *
- * @return { Buffer } The Buffer value.
- */
+ * Gets the underlying internal Buffer. (This includes unmanaged data in the Buffer)
+ *
+ * @return { Buffer } The Buffer value.
+ */
get internalBuffer() {
return this._buff;
}
/**
- * Gets the value of the internal managed Buffer (Includes managed data only)
- *
- * @param { Buffer }
- */
+ * Gets the value of the internal managed Buffer (Includes managed data only)
+ *
+ * @param { Buffer }
+ */
toBuffer() {
return this._buff.slice(0, this.length);
}
/**
- * Gets the String value of the internal managed Buffer
- *
- * @param encoding { String } The BufferEncoding to display the Buffer as (defaults to instance level encoding).
- */
+ * Gets the String value of the internal managed Buffer
+ *
+ * @param encoding { String } The BufferEncoding to display the Buffer as (defaults to instance level encoding).
+ */
toString(encoding) {
const encodingVal = typeof encoding === 'string' ? encoding : this._encoding;
// Check for invalid encoding.
@@ -853,20 +845,20 @@ class SmartBuffer {
return this._buff.toString(encodingVal, 0, this.length);
}
/**
- * Destroys the SmartBuffer instance.
- */
+ * Destroys the SmartBuffer instance.
+ */
destroy() {
this.clear();
return this;
}
/**
- * Handles inserting and writing strings.
- *
- * @param value { String } The String value to insert.
- * @param isInsert { Boolean } True if inserting a string, false if writing.
- * @param arg2 { Number | String } The offset to insert the string at, or the BufferEncoding to use.
- * @param encoding { String } The BufferEncoding to use for writing strings (defaults to instance encoding).
- */
+ * Handles inserting and writing strings.
+ *
+ * @param value { String } The String value to insert.
+ * @param isInsert { Boolean } True if inserting a string, false if writing.
+ * @param arg2 { Number | String } The offset to insert the string at, or the BufferEncoding to use.
+ * @param encoding { String } The BufferEncoding to use for writing strings (defaults to instance encoding).
+ */
_handleString(value, isInsert, arg3, encoding) {
let offsetVal = this._writeOffset;
let encodingVal = this._encoding;
@@ -912,11 +904,11 @@ class SmartBuffer {
return this;
}
/**
- * Handles writing or insert of a Buffer.
- *
- * @param value { Buffer } The Buffer to write.
- * @param offset { Number } The offset to write the Buffer to.
- */
+ * Handles writing or insert of a Buffer.
+ *
+ * @param value { Buffer } The Buffer to write.
+ * @param offset { Number } The offset to write the Buffer to.
+ */
_handleBuffer(value, isInsert, offset) {
const offsetVal = typeof offset === 'number' ? offset : this._writeOffset;
// Ensure there is enough internal Buffer capacity.
@@ -945,11 +937,11 @@ class SmartBuffer {
return this;
}
/**
- * Ensures that the internal Buffer is large enough to read data.
- *
- * @param length { Number } The length of the data that needs to be read.
- * @param offset { Number } The offset of the data that needs to be read.
- */
+ * Ensures that the internal Buffer is large enough to read data.
+ *
+ * @param length { Number } The length of the data that needs to be read.
+ * @param offset { Number } The offset of the data that needs to be read.
+ */
ensureReadable(length, offset) {
// Offset value defaults to managed read offset.
let offsetVal = this._readOffset;
@@ -966,11 +958,11 @@ class SmartBuffer {
}
}
/**
- * Ensures that the internal Buffer is large enough to insert data.
- *
- * @param dataLength { Number } The length of the data that needs to be written.
- * @param offset { Number } The offset of the data to be written.
- */
+ * Ensures that the internal Buffer is large enough to insert data.
+ *
+ * @param dataLength { Number } The length of the data that needs to be written.
+ * @param offset { Number } The offset of the data to be written.
+ */
ensureInsertable(dataLength, offset) {
// Checks for valid numberic value;
utils_1.checkOffsetValue(offset);
@@ -989,11 +981,11 @@ class SmartBuffer {
}
}
/**
- * Ensures that the internal Buffer is large enough to write data.
- *
- * @param dataLength { Number } The length of the data that needs to be written.
- * @param offset { Number } The offset of the data to be written (defaults to writeOffset).
- */
+ * Ensures that the internal Buffer is large enough to write data.
+ *
+ * @param dataLength { Number } The length of the data that needs to be written.
+ * @param offset { Number } The offset of the data to be written (defaults to writeOffset).
+ */
_ensureWriteable(dataLength, offset) {
const offsetVal = typeof offset === 'number' ? offset : this._writeOffset;
// Ensure enough capacity to write data.
@@ -1004,15 +996,15 @@ class SmartBuffer {
}
}
/**
- * Ensures that the internal Buffer is large enough to write at least the given amount of data.
- *
- * @param minLength { Number } The minimum length of the data needs to be written.
- */
+ * Ensures that the internal Buffer is large enough to write at least the given amount of data.
+ *
+ * @param minLength { Number } The minimum length of the data needs to be written.
+ */
_ensureCapacity(minLength) {
const oldLength = this._buff.length;
if (minLength > oldLength) {
let data = this._buff;
- let newLength = oldLength * 3 / 2 + 1;
+ let newLength = (oldLength * 3) / 2 + 1;
if (newLength < minLength) {
newLength = minLength;
}
@@ -1021,14 +1013,14 @@ class SmartBuffer {
}
}
/**
- * Reads a numeric number value using the provided function.
- *
- * @param func { Function(offset: number) => number } The function to read data on the internal Buffer with.
- * @param byteSize { Number } The number of bytes read.
- * @param offset { Number } The offset to read from (optional). When this is not provided, the managed readOffset is used instead.
- *
- * @param { Number }
- */
+ * Reads a numeric number value using the provided function.
+ *
+ * @param func { Function(offset: number) => number } The function to read data on the internal Buffer with.
+ * @param byteSize { Number } The number of bytes read.
+ * @param offset { Number } The offset to read from (optional). When this is not provided, the managed readOffset is used instead.
+ *
+ * @param { Number }
+ */
_readNumberValue(func, byteSize, offset) {
this.ensureReadable(byteSize, offset);
// Call Buffer.readXXXX();
@@ -1040,14 +1032,14 @@ class SmartBuffer {
return value;
}
/**
- * Inserts a numeric number value based on the given offset and value.
- *
- * @param func { Function(offset: number, offset?) => number} The function to write data on the internal Buffer with.
- * @param byteSize { Number } The number of bytes written.
- * @param value { Number } The number value to write.
- * @param offset { Number } the offset to write the number at (REQUIRED).
- *
- */
+ * Inserts a numeric number value based on the given offset and value.
+ *
+ * @param func { Function(offset: number, offset?) => number} The function to write data on the internal Buffer with.
+ * @param byteSize { Number } The number of bytes written.
+ * @param value { Number } The number value to write.
+ * @param offset { Number } the offset to write the number at (REQUIRED).
+ *
+ */
_insertNumberValue(func, byteSize, value, offset) {
// Check for invalid offset values.
utils_1.checkOffsetValue(offset);
@@ -1057,16 +1049,17 @@ class SmartBuffer {
func.call(this._buff, value, offset);
// Adjusts internally managed write offset.
this._writeOffset += byteSize;
+ return this;
}
/**
- * Writes a numeric number value based on the given offset and value.
- *
- * @param func { Function(offset: number, offset?) => number} The function to write data on the internal Buffer with.
- * @param byteSize { Number } The number of bytes written.
- * @param value { Number } The number value to write.
- * @param offset { Number } the offset to write the number at (REQUIRED).
- *
- */
+ * Writes a numeric number value based on the given offset and value.
+ *
+ * @param func { Function(offset: number, offset?) => number} The function to write data on the internal Buffer with.
+ * @param byteSize { Number } The number of bytes written.
+ * @param value { Number } The number value to write.
+ * @param offset { Number } the offset to write the number at (REQUIRED).
+ *
+ */
_writeNumberValue(func, byteSize, value, offset) {
// If an offset was provided, validate it.
if (typeof offset === 'number') {
@@ -1089,6 +1082,7 @@ class SmartBuffer {
// If no numeric offset was given, we wrote to the end of the SmartBuffer so increment writeOffset.
this._writeOffset += byteSize;
}
+ return this;
}
}
exports.SmartBuffer = SmartBuffer;
diff --git a/deps/npm/node_modules/smart-buffer/build/smartbuffer.js.map b/deps/npm/node_modules/smart-buffer/build/smartbuffer.js.map
index 4a1efcd055..cf6ee6eca1 100644
--- a/deps/npm/node_modules/smart-buffer/build/smartbuffer.js.map
+++ b/deps/npm/node_modules/smart-buffer/build/smartbuffer.js.map
@@ -1 +1 @@
-{"version":3,"file":"smartbuffer.js","sourceRoot":"","sources":["../src/smartbuffer.ts"],"names":[],"mappings":";;AAAA,mCAAwH;AAcxH,kDAAkD;AAClD,MAAM,wBAAwB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,QAAQ,CAAC;QAC9B,MAAM,CAAC,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;OAQG;IACK,iBAAiB,CACvB,IAAgD,EAChD,QAAgB,EAChB,KAAa,EACb,MAAe;QAEf,0CAA0C;QAC1C,EAAE,CAAC,CAAC,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC;YAC/B,gEAAgE;YAChE,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC;gBACf,MAAM,IAAI,KAAK,CAAC,cAAM,CAAC,2BAA2B,CAAC,CAAC;YACtD,CAAC;YAED,wBAAgB,CAAC,MAAM,CAAC,CAAC;QAC3B,CAAC;QAED,uDAAuD;QACvD,MAAM,SAAS,GAAG,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;QAE1E,0EAA0E;QAC1E,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;QAE3C,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC;QAExC,mFAAmF;QACnF,EAAE,CAAC,CAAC,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC;YAC/B,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,EAAE,SAAS,GAAG,QAAQ,CAAC,CAAC;QACxE,CAAC;QAAC,IAAI,CAAC,CAAC;YACN,mGAAmG;YACnG,IAAI,CAAC,YAAY,IAAI,QAAQ,CAAC;QAChC,CAAC;QAED,MAAM,CAAC,IAAI,CAAC;IACd,CAAC;CACF;AAE4B,kCAAW"} \ No newline at end of file
diff --git a/deps/npm/node_modules/smart-buffer/package.json b/deps/npm/node_modules/smart-buffer/package.json
index f5365e499c..ca94fd0908 100644
--- a/deps/npm/node_modules/smart-buffer/package.json
+++ b/deps/npm/node_modules/smart-buffer/package.json
@@ -1,27 +1,27 @@
{
- "_from": "smart-buffer@^4.0.1",
- "_id": "smart-buffer@4.0.1",
+ "_from": "smart-buffer@4.0.2",
+ "_id": "smart-buffer@4.0.2",
"_inBundle": false,
- "_integrity": "sha512-RFqinRVJVcCAL9Uh1oVqE6FZkqsyLiVOYEZ20TqIOjuX7iFVJ+zsbs4RIghnw/pTs7mZvt8ZHhvm1ZUrR4fykg==",
+ "_integrity": "sha512-JDhEpTKzXusOqXZ0BUIdH+CjFdO/CR3tLlf5CN34IypI+xMmXW1uB16OOY8z3cICbJlDAVJzNbwBhNO0wt9OAw==",
"_location": "/smart-buffer",
"_phantomChildren": {},
"_requested": {
- "type": "range",
+ "type": "version",
"registry": true,
- "raw": "smart-buffer@^4.0.1",
+ "raw": "smart-buffer@4.0.2",
"name": "smart-buffer",
"escapedName": "smart-buffer",
- "rawSpec": "^4.0.1",
+ "rawSpec": "4.0.2",
"saveSpec": null,
- "fetchSpec": "^4.0.1"
+ "fetchSpec": "4.0.2"
},
"_requiredBy": [
"/socks"
],
- "_resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.0.1.tgz",
- "_shasum": "07ea1ca8d4db24eb4cac86537d7d18995221ace3",
- "_spec": "smart-buffer@^4.0.1",
- "_where": "/Users/rebecca/code/npm/node_modules/socks",
+ "_resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.0.2.tgz",
+ "_shasum": "5207858c3815cc69110703c6b94e46c15634395d",
+ "_spec": "smart-buffer@4.0.2",
+ "_where": "/Users/isaacs/dev/npm/cli/node_modules/socks",
"author": {
"name": "Josh Glazebrook"
},
@@ -100,5 +100,5 @@
"test": "NODE_ENV=test mocha --recursive --compilers ts:ts-node/register test/**/*.ts"
},
"typings": "typings/smartbuffer.d.ts",
- "version": "4.0.1"
+ "version": "4.0.2"
}
diff --git a/deps/npm/node_modules/smart-buffer/typings/smartbuffer.d.ts b/deps/npm/node_modules/smart-buffer/typings/smartbuffer.d.ts
index 79fa6306a4..19456754b4 100644
--- a/deps/npm/node_modules/smart-buffer/typings/smartbuffer.d.ts
+++ b/deps/npm/node_modules/smart-buffer/typings/smartbuffer.d.ts
@@ -1,654 +1,647 @@
/// <reference types="node" />
-declare module 'smart-buffer' {
- /**
+/**
* Object interface for constructing new SmartBuffer instances.
*/
- interface SmartBufferOptions {
+interface SmartBufferOptions {
encoding?: BufferEncoding;
size?: number;
buff?: Buffer;
- }
- class SmartBuffer {
+}
+declare class SmartBuffer {
length: number;
private _encoding;
private _buff;
private _writeOffset;
private _readOffset;
/**
- * Creates a new SmartBuffer instance.
- *
- * @param options { SmartBufferOptions } The SmartBufferOptions to apply to this instance.
- */
+ * Creates a new SmartBuffer instance.
+ *
+ * @param options { SmartBufferOptions } The SmartBufferOptions to apply to this instance.
+ */
constructor(options?: SmartBufferOptions);
/**
- * Creates a new SmartBuffer instance with the provided internal Buffer size and optional encoding.
- *
- * @param size { Number } The size of the internal Buffer.
- * @param encoding { String } The BufferEncoding to use for strings.
- *
- * @return { SmartBuffer }
- */
+ * Creates a new SmartBuffer instance with the provided internal Buffer size and optional encoding.
+ *
+ * @param size { Number } The size of the internal Buffer.
+ * @param encoding { String } The BufferEncoding to use for strings.
+ *
+ * @return { SmartBuffer }
+ */
static fromSize(size: number, encoding?: BufferEncoding): SmartBuffer;
/**
- * Creates a new SmartBuffer instance with the provided Buffer and optional encoding.
- *
- * @param buffer { Buffer } The Buffer to use as the internal Buffer value.
- * @param encoding { String } The BufferEncoding to use for strings.
- *
- * @return { SmartBuffer }
- */
+ * Creates a new SmartBuffer instance with the provided Buffer and optional encoding.
+ *
+ * @param buffer { Buffer } The Buffer to use as the internal Buffer value.
+ * @param encoding { String } The BufferEncoding to use for strings.
+ *
+ * @return { SmartBuffer }
+ */
static fromBuffer(buff: Buffer, encoding?: BufferEncoding): SmartBuffer;
/**
- * Creates a new SmartBuffer instance with the provided SmartBufferOptions options.
- *
- * @param options { SmartBufferOptions } The options to use when creating the SmartBuffer instance.
- */
+ * Creates a new SmartBuffer instance with the provided SmartBufferOptions options.
+ *
+ * @param options { SmartBufferOptions } The options to use when creating the SmartBuffer instance.
+ */
static fromOptions(options: SmartBufferOptions): SmartBuffer;
/**
- * Type checking function that determines if an object is a SmartBufferOptions object.
- */
- static isSmartBufferOptions(
- options: SmartBufferOptions
- ): options is SmartBufferOptions;
- /**
- * Reads an Int8 value from the current read position or an optionally provided offset.
- *
- * @param offset { Number } The offset to read data from (optional)
- * @return { Number }
- */
+ * Type checking function that determines if an object is a SmartBufferOptions object.
+ */
+ static isSmartBufferOptions(options: SmartBufferOptions): options is SmartBufferOptions;
+ /**
+ * Reads an Int8 value from the current read position or an optionally provided offset.
+ *
+ * @param offset { Number } The offset to read data from (optional)
+ * @return { Number }
+ */
readInt8(offset?: number): number;
/**
- * Reads an Int16BE value from the current read position or an optionally provided offset.
- *
- * @param offset { Number } The offset to read data from (optional)
- * @return { Number }
- */
+ * Reads an Int16BE value from the current read position or an optionally provided offset.
+ *
+ * @param offset { Number } The offset to read data from (optional)
+ * @return { Number }
+ */
readInt16BE(offset?: number): number;
/**
- * Reads an Int16LE value from the current read position or an optionally provided offset.
- *
- * @param offset { Number } The offset to read data from (optional)
- * @return { Number }
- */
+ * Reads an Int16LE value from the current read position or an optionally provided offset.
+ *
+ * @param offset { Number } The offset to read data from (optional)
+ * @return { Number }
+ */
readInt16LE(offset?: number): number;
/**
- * Reads an Int32BE value from the current read position or an optionally provided offset.
- *
- * @param offset { Number } The offset to read data from (optional)
- * @return { Number }
- */
+ * Reads an Int32BE value from the current read position or an optionally provided offset.
+ *
+ * @param offset { Number } The offset to read data from (optional)
+ * @return { Number }
+ */
readInt32BE(offset?: number): number;
/**
- * Reads an Int32LE value from the current read position or an optionally provided offset.
- *
- * @param offset { Number } The offset to read data from (optional)
- * @return { Number }
- */
+ * Reads an Int32LE value from the current read position or an optionally provided offset.
+ *
+ * @param offset { Number } The offset to read data from (optional)
+ * @return { Number }
+ */
readInt32LE(offset?: number): number;
/**
- * Writes an Int8 value to the current write position (or at optional offset).
- *
- * @param value { Number } The value to write.
- * @param offset { Number } The offset to write the value at.
- *
- * @return this
- */
+ * Writes an Int8 value to the current write position (or at optional offset).
+ *
+ * @param value { Number } The value to write.
+ * @param offset { Number } The offset to write the value at.
+ *
+ * @return this
+ */
writeInt8(value: number, offset?: number): SmartBuffer;
/**
- * Inserts an Int8 value at the given offset value.
- *
- * @param value { Number } The value to insert.
- * @param offset { Number } The offset to insert the value at.
- *
- * @return this
- */
+ * Inserts an Int8 value at the given offset value.
+ *
+ * @param value { Number } The value to insert.
+ * @param offset { Number } The offset to insert the value at.
+ *
+ * @return this
+ */
insertInt8(value: number, offset: number): SmartBuffer;
/**
- * Writes an Int16BE value to the current write position (or at optional offset).
- *
- * @param value { Number } The value to write.
- * @param offset { Number } The offset to write the value at.
- *
- * @return this
- */
+ * Writes an Int16BE value to the current write position (or at optional offset).
+ *
+ * @param value { Number } The value to write.
+ * @param offset { Number } The offset to write the value at.
+ *
+ * @return this
+ */
writeInt16BE(value: number, offset?: number): SmartBuffer;
/**
- * Inserts an Int16BE value at the given offset value.
- *
- * @param value { Number } The value to insert.
- * @param offset { Number } The offset to insert the value at.
- *
- * @return this
- */
+ * Inserts an Int16BE value at the given offset value.
+ *
+ * @param value { Number } The value to insert.
+ * @param offset { Number } The offset to insert the value at.
+ *
+ * @return this
+ */
insertInt16BE(value: number, offset: number): SmartBuffer;
/**
- * Writes an Int16LE value to the current write position (or at optional offset).
- *
- * @param value { Number } The value to write.
- * @param offset { Number } The offset to write the value at.
- *
- * @return this
- */
+ * Writes an Int16LE value to the current write position (or at optional offset).
+ *
+ * @param value { Number } The value to write.
+ * @param offset { Number } The offset to write the value at.
+ *
+ * @return this
+ */
writeInt16LE(value: number, offset?: number): SmartBuffer;
/**
- * Inserts an Int16LE value at the given offset value.
- *
- * @param value { Number } The value to insert.
- * @param offset { Number } The offset to insert the value at.
- *
- * @return this
- */
+ * Inserts an Int16LE value at the given offset value.
+ *
+ * @param value { Number } The value to insert.
+ * @param offset { Number } The offset to insert the value at.
+ *
+ * @return this
+ */
insertInt16LE(value: number, offset: number): SmartBuffer;
/**
- * Writes an Int32BE value to the current write position (or at optional offset).
- *
- * @param value { Number } The value to write.
- * @param offset { Number } The offset to write the value at.
- *
- * @return this
- */
+ * Writes an Int32BE value to the current write position (or at optional offset).
+ *
+ * @param value { Number } The value to write.
+ * @param offset { Number } The offset to write the value at.
+ *
+ * @return this
+ */
writeInt32BE(value: number, offset?: number): SmartBuffer;
/**
- * Inserts an Int32BE value at the given offset value.
- *
- * @param value { Number } The value to insert.
- * @param offset { Number } The offset to insert the value at.
- *
- * @return this
- */
+ * Inserts an Int32BE value at the given offset value.
+ *
+ * @param value { Number } The value to insert.
+ * @param offset { Number } The offset to insert the value at.
+ *
+ * @return this
+ */
insertInt32BE(value: number, offset: number): SmartBuffer;
/**
- * Writes an Int32LE value to the current write position (or at optional offset).
- *
- * @param value { Number } The value to write.
- * @param offset { Number } The offset to write the value at.
- *
- * @return this
- */
+ * Writes an Int32LE value to the current write position (or at optional offset).
+ *
+ * @param value { Number } The value to write.
+ * @param offset { Number } The offset to write the value at.
+ *
+ * @return this
+ */
writeInt32LE(value: number, offset?: number): SmartBuffer;
/**
- * Inserts an Int32LE value at the given offset value.
- *
- * @param value { Number } The value to insert.
- * @param offset { Number } The offset to insert the value at.
- *
- * @return this
- */
+ * Inserts an Int32LE value at the given offset value.
+ *
+ * @param value { Number } The value to insert.
+ * @param offset { Number } The offset to insert the value at.
+ *
+ * @return this
+ */
insertInt32LE(value: number, offset: number): SmartBuffer;
/**
- * Reads an UInt8 value from the current read position or an optionally provided offset.
- *
- * @param offset { Number } The offset to read data from (optional)
- * @return { Number }
- */
+ * Reads an UInt8 value from the current read position or an optionally provided offset.
+ *
+ * @param offset { Number } The offset to read data from (optional)
+ * @return { Number }
+ */
readUInt8(offset?: number): number;
/**
- * Reads an UInt16BE value from the current read position or an optionally provided offset.
- *
- * @param offset { Number } The offset to read data from (optional)
- * @return { Number }
- */
+ * Reads an UInt16BE value from the current read position or an optionally provided offset.
+ *
+ * @param offset { Number } The offset to read data from (optional)
+ * @return { Number }
+ */
readUInt16BE(offset?: number): number;
/**
- * Reads an UInt16LE value from the current read position or an optionally provided offset.
- *
- * @param offset { Number } The offset to read data from (optional)
- * @return { Number }
- */
+ * Reads an UInt16LE value from the current read position or an optionally provided offset.
+ *
+ * @param offset { Number } The offset to read data from (optional)
+ * @return { Number }
+ */
readUInt16LE(offset?: number): number;
/**
- * Reads an UInt32BE value from the current read position or an optionally provided offset.
- *
- * @param offset { Number } The offset to read data from (optional)
- * @return { Number }
- */
+ * Reads an UInt32BE value from the current read position or an optionally provided offset.
+ *
+ * @param offset { Number } The offset to read data from (optional)
+ * @return { Number }
+ */
readUInt32BE(offset?: number): number;
/**
- * Reads an UInt32LE value from the current read position or an optionally provided offset.
- *
- * @param offset { Number } The offset to read data from (optional)
- * @return { Number }
- */
+ * Reads an UInt32LE value from the current read position or an optionally provided offset.
+ *
+ * @param offset { Number } The offset to read data from (optional)
+ * @return { Number }
+ */
readUInt32LE(offset?: number): number;
/**
- * Writes an UInt8 value to the current write position (or at optional offset).
- *
- * @param value { Number } The value to write.
- * @param offset { Number } The offset to write the value at.
- *
- * @return this
- */
+ * Writes an UInt8 value to the current write position (or at optional offset).
+ *
+ * @param value { Number } The value to write.
+ * @param offset { Number } The offset to write the value at.
+ *
+ * @return this
+ */
writeUInt8(value: number, offset?: number): SmartBuffer;
/**
- * Inserts an UInt8 value at the given offset value.
- *
- * @param value { Number } The value to insert.
- * @param offset { Number } The offset to insert the value at.
- *
- * @return this
- */
+ * Inserts an UInt8 value at the given offset value.
+ *
+ * @param value { Number } The value to insert.
+ * @param offset { Number } The offset to insert the value at.
+ *
+ * @return this
+ */
insertUInt8(value: number, offset: number): SmartBuffer;
/**
- * Writes an UInt16BE value to the current write position (or at optional offset).
- *
- * @param value { Number } The value to write.
- * @param offset { Number } The offset to write the value at.
- *
- * @return this
- */
+ * Writes an UInt16BE value to the current write position (or at optional offset).
+ *
+ * @param value { Number } The value to write.
+ * @param offset { Number } The offset to write the value at.
+ *
+ * @return this
+ */
writeUInt16BE(value: number, offset?: number): SmartBuffer;
/**
- * Inserts an UInt16BE value at the given offset value.
- *
- * @param value { Number } The value to insert.
- * @param offset { Number } The offset to insert the value at.
- *
- * @return this
- */
+ * Inserts an UInt16BE value at the given offset value.
+ *
+ * @param value { Number } The value to insert.
+ * @param offset { Number } The offset to insert the value at.
+ *
+ * @return this
+ */
insertUInt16BE(value: number, offset: number): SmartBuffer;
/**
- * Writes an UInt16LE value to the current write position (or at optional offset).
- *
- * @param value { Number } The value to write.
- * @param offset { Number } The offset to write the value at.
- *
- * @return this
- */
+ * Writes an UInt16LE value to the current write position (or at optional offset).
+ *
+ * @param value { Number } The value to write.
+ * @param offset { Number } The offset to write the value at.
+ *
+ * @return this
+ */
writeUInt16LE(value: number, offset?: number): SmartBuffer;
/**
- * Inserts an UInt16LE value at the given offset value.
- *
- * @param value { Number } The value to insert.
- * @param offset { Number } The offset to insert the value at.
- *
- * @return this
- */
+ * Inserts an UInt16LE value at the given offset value.
+ *
+ * @param value { Number } The value to insert.
+ * @param offset { Number } The offset to insert the value at.
+ *
+ * @return this
+ */
insertUInt16LE(value: number, offset: number): SmartBuffer;
/**
- * Writes an UInt32BE value to the current write position (or at optional offset).
- *
- * @param value { Number } The value to write.
- * @param offset { Number } The offset to write the value at.
- *
- * @return this
- */
+ * Writes an UInt32BE value to the current write position (or at optional offset).
+ *
+ * @param value { Number } The value to write.
+ * @param offset { Number } The offset to write the value at.
+ *
+ * @return this
+ */
writeUInt32BE(value: number, offset?: number): SmartBuffer;
/**
- * Inserts an UInt32BE value at the given offset value.
- *
- * @param value { Number } The value to insert.
- * @param offset { Number } The offset to insert the value at.
- *
- * @return this
- */
+ * Inserts an UInt32BE value at the given offset value.
+ *
+ * @param value { Number } The value to insert.
+ * @param offset { Number } The offset to insert the value at.
+ *
+ * @return this
+ */
insertUInt32BE(value: number, offset: number): SmartBuffer;
/**
- * Writes an UInt32LE value to the current write position (or at optional offset).
- *
- * @param value { Number } The value to write.
- * @param offset { Number } The offset to write the value at.
- *
- * @return this
- */
+ * Writes an UInt32LE value to the current write position (or at optional offset).
+ *
+ * @param value { Number } The value to write.
+ * @param offset { Number } The offset to write the value at.
+ *
+ * @return this
+ */
writeUInt32LE(value: number, offset?: number): SmartBuffer;
/**
- * Inserts an UInt32LE value at the given offset value.
- *
- * @param value { Number } The value to insert.
- * @param offset { Number } The offset to insert the value at.
- *
- * @return this
- */
+ * Inserts an UInt32LE value at the given offset value.
+ *
+ * @param value { Number } The value to insert.
+ * @param offset { Number } The offset to insert the value at.
+ *
+ * @return this
+ */
insertUInt32LE(value: number, offset: number): SmartBuffer;
/**
- * Reads an FloatBE value from the current read position or an optionally provided offset.
- *
- * @param offset { Number } The offset to read data from (optional)
- * @return { Number }
- */
+ * Reads an FloatBE value from the current read position or an optionally provided offset.
+ *
+ * @param offset { Number } The offset to read data from (optional)
+ * @return { Number }
+ */
readFloatBE(offset?: number): number;
/**
- * Reads an FloatLE value from the current read position or an optionally provided offset.
- *
- * @param offset { Number } The offset to read data from (optional)
- * @return { Number }
- */
+ * Reads an FloatLE value from the current read position or an optionally provided offset.
+ *
+ * @param offset { Number } The offset to read data from (optional)
+ * @return { Number }
+ */
readFloatLE(offset?: number): number;
/**
- * Writes a FloatBE value to the current write position (or at optional offset).
- *
- * @param value { Number } The value to write.
- * @param offset { Number } The offset to write the value at.
- *
- * @return this
- */
+ * Writes a FloatBE value to the current write position (or at optional offset).
+ *
+ * @param value { Number } The value to write.
+ * @param offset { Number } The offset to write the value at.
+ *
+ * @return this
+ */
writeFloatBE(value: number, offset?: number): SmartBuffer;
/**
- * Inserts a FloatBE value at the given offset value.
- *
- * @param value { Number } The value to insert.
- * @param offset { Number } The offset to insert the value at.
- *
- * @return this
- */
+ * Inserts a FloatBE value at the given offset value.
+ *
+ * @param value { Number } The value to insert.
+ * @param offset { Number } The offset to insert the value at.
+ *
+ * @return this
+ */
insertFloatBE(value: number, offset: number): SmartBuffer;
/**
- * Writes a FloatLE value to the current write position (or at optional offset).
- *
- * @param value { Number } The value to write.
- * @param offset { Number } The offset to write the value at.
- *
- * @return this
- */
+ * Writes a FloatLE value to the current write position (or at optional offset).
+ *
+ * @param value { Number } The value to write.
+ * @param offset { Number } The offset to write the value at.
+ *
+ * @return this
+ */
writeFloatLE(value: number, offset?: number): SmartBuffer;
/**
- * Inserts a FloatLE value at the given offset value.
- *
- * @param value { Number } The value to insert.
- * @param offset { Number } The offset to insert the value at.
- *
- * @return this
- */
+ * Inserts a FloatLE value at the given offset value.
+ *
+ * @param value { Number } The value to insert.
+ * @param offset { Number } The offset to insert the value at.
+ *
+ * @return this
+ */
insertFloatLE(value: number, offset: number): SmartBuffer;
/**
- * Reads an DoublEBE value from the current read position or an optionally provided offset.
- *
- * @param offset { Number } The offset to read data from (optional)
- * @return { Number }
- */
+ * Reads an DoublEBE value from the current read position or an optionally provided offset.
+ *
+ * @param offset { Number } The offset to read data from (optional)
+ * @return { Number }
+ */
readDoubleBE(offset?: number): number;
/**
- * Reads an DoubleLE value from the current read position or an optionally provided offset.
- *
- * @param offset { Number } The offset to read data from (optional)
- * @return { Number }
- */
+ * Reads an DoubleLE value from the current read position or an optionally provided offset.
+ *
+ * @param offset { Number } The offset to read data from (optional)
+ * @return { Number }
+ */
readDoubleLE(offset?: number): number;
/**
- * Writes a DoubleBE value to the current write position (or at optional offset).
- *
- * @param value { Number } The value to write.
- * @param offset { Number } The offset to write the value at.
- *
- * @return this
- */
+ * Writes a DoubleBE value to the current write position (or at optional offset).
+ *
+ * @param value { Number } The value to write.
+ * @param offset { Number } The offset to write the value at.
+ *
+ * @return this
+ */
writeDoubleBE(value: number, offset?: number): SmartBuffer;
/**
- * Inserts a DoubleBE value at the given offset value.
- *
- * @param value { Number } The value to insert.
- * @param offset { Number } The offset to insert the value at.
- *
- * @return this
- */
+ * Inserts a DoubleBE value at the given offset value.
+ *
+ * @param value { Number } The value to insert.
+ * @param offset { Number } The offset to insert the value at.
+ *
+ * @return this
+ */
insertDoubleBE(value: number, offset: number): SmartBuffer;
/**
- * Writes a DoubleLE value to the current write position (or at optional offset).
- *
- * @param value { Number } The value to write.
- * @param offset { Number } The offset to write the value at.
- *
- * @return this
- */
+ * Writes a DoubleLE value to the current write position (or at optional offset).
+ *
+ * @param value { Number } The value to write.
+ * @param offset { Number } The offset to write the value at.
+ *
+ * @return this
+ */
writeDoubleLE(value: number, offset?: number): SmartBuffer;
/**
- * Inserts a DoubleLE value at the given offset value.
- *
- * @param value { Number } The value to insert.
- * @param offset { Number } The offset to insert the value at.
- *
- * @return this
- */
+ * Inserts a DoubleLE value at the given offset value.
+ *
+ * @param value { Number } The value to insert.
+ * @param offset { Number } The offset to insert the value at.
+ *
+ * @return this
+ */
insertDoubleLE(value: number, offset: number): SmartBuffer;
/**
- * Reads a String from the current read position.
- *
- * @param arg1 { Number | String } The number of bytes to read as a String, or the BufferEncoding to use for
- * the string (Defaults to instance level encoding).
- * @param encoding { String } The BufferEncoding to use for the string (Defaults to instance level encoding).
- *
- * @return { String }
- */
- readString(
- arg1?: number | BufferEncoding,
- encoding?: BufferEncoding
- ): string;
- /**
- * Inserts a String
- *
- * @param value { String } The String value to insert.
- * @param offset { Number } The offset to insert the string at.
- * @param encoding { String } The BufferEncoding to use for writing strings (defaults to instance encoding).
- */
- insertString(
- value: string,
- offset: number,
- encoding?: BufferEncoding
- ): SmartBuffer;
- /**
- * Writes a String
- *
- * @param value { String } The String value to write.
- * @param arg2 { Number | String } The offset to write the string at, or the BufferEncoding to use.
- * @param encoding { String } The BufferEncoding to use for writing strings (defaults to instance encoding).
- */
- writeString(
- value: string,
- arg2?: number | BufferEncoding,
- encoding?: BufferEncoding
- ): SmartBuffer;
- /**
- * Reads a null-terminated String from the current read position.
- *
- * @param encoding { String } The BufferEncoding to use for the string (Defaults to instance level encoding).
- *
- * @return { String }
- */
+ * Reads a String from the current read position.
+ *
+ * @param arg1 { Number | String } The number of bytes to read as a String, or the BufferEncoding to use for
+ * the string (Defaults to instance level encoding).
+ * @param encoding { String } The BufferEncoding to use for the string (Defaults to instance level encoding).
+ *
+ * @return { String }
+ */
+ readString(arg1?: number | BufferEncoding, encoding?: BufferEncoding): string;
+ /**
+ * Inserts a String
+ *
+ * @param value { String } The String value to insert.
+ * @param offset { Number } The offset to insert the string at.
+ * @param encoding { String } The BufferEncoding to use for writing strings (defaults to instance encoding).
+ *
+ * @return this
+ */
+ insertString(value: string, offset: number, encoding?: BufferEncoding): SmartBuffer;
+ /**
+ * Writes a String
+ *
+ * @param value { String } The String value to write.
+ * @param arg2 { Number | String } The offset to write the string at, or the BufferEncoding to use.
+ * @param encoding { String } The BufferEncoding to use for writing strings (defaults to instance encoding).
+ *
+ * @return this
+ */
+ writeString(value: string, arg2?: number | BufferEncoding, encoding?: BufferEncoding): SmartBuffer;
+ /**
+ * Reads a null-terminated String from the current read position.
+ *
+ * @param encoding { String } The BufferEncoding to use for the string (Defaults to instance level encoding).
+ *
+ * @return { String }
+ */
readStringNT(encoding?: BufferEncoding): string;
/**
- * Inserts a null-terminated String.
- *
- * @param value { String } The String value to write.
- * @param arg2 { Number | String } The offset to write the string to, or the BufferEncoding to use.
- * @param encoding { String } The BufferEncoding to use for writing strings (defaults to instance encoding).
- */
- insertStringNT(
- value: string,
- offset: number,
- encoding?: BufferEncoding
- ): void;
- /**
- * Writes a null-terminated String.
- *
- * @param value { String } The String value to write.
- * @param arg2 { Number | String } The offset to write the string to, or the BufferEncoding to use.
- * @param encoding { String } The BufferEncoding to use for writing strings (defaults to instance encoding).
- */
- writeStringNT(
- value: string,
- arg2?: number | BufferEncoding,
- encoding?: BufferEncoding
- ): void;
- /**
- * Reads a Buffer from the internal read position.
- *
- * @param length { Number } The length of data to read as a Buffer.
- *
- * @return { Buffer }
- */
+ * Inserts a null-terminated String.
+ *
+ * @param value { String } The String value to write.
+ * @param arg2 { Number | String } The offset to write the string to, or the BufferEncoding to use.
+ * @param encoding { String } The BufferEncoding to use for writing strings (defaults to instance encoding).
+ *
+ * @return this
+ */
+ insertStringNT(value: string, offset: number, encoding?: BufferEncoding): SmartBuffer;
+ /**
+ * Writes a null-terminated String.
+ *
+ * @param value { String } The String value to write.
+ * @param arg2 { Number | String } The offset to write the string to, or the BufferEncoding to use.
+ * @param encoding { String } The BufferEncoding to use for writing strings (defaults to instance encoding).
+ *
+ * @return this
+ */
+ writeStringNT(value: string, arg2?: number | BufferEncoding, encoding?: BufferEncoding): SmartBuffer;
+ /**
+ * Reads a Buffer from the internal read position.
+ *
+ * @param length { Number } The length of data to read as a Buffer.
+ *
+ * @return { Buffer }
+ */
readBuffer(length?: number): Buffer;
/**
- * Writes a Buffer to the current write position.
- *
- * @param value { Buffer } The Buffer to write.
- * @param offset { Number } The offset to write the Buffer to.
- */
+ * Writes a Buffer to the current write position.
+ *
+ * @param value { Buffer } The Buffer to write.
+ * @param offset { Number } The offset to write the Buffer to.
+ *
+ * @return this
+ */
insertBuffer(value: Buffer, offset: number): SmartBuffer;
/**
- * Writes a Buffer to the current write position.
- *
- * @param value { Buffer } The Buffer to write.
- * @param offset { Number } The offset to write the Buffer to.
- */
+ * Writes a Buffer to the current write position.
+ *
+ * @param value { Buffer } The Buffer to write.
+ * @param offset { Number } The offset to write the Buffer to.
+ *
+ * @return this
+ */
writeBuffer(value: Buffer, offset?: number): SmartBuffer;
/**
- * Reads a null-terminated Buffer from the current read poisiton.
- *
- * @return { Buffer }
- */
+ * Reads a null-terminated Buffer from the current read poisiton.
+ *
+ * @return { Buffer }
+ */
readBufferNT(): Buffer;
/**
- * Inserts a null-terminated Buffer.
- *
- * @param value { Buffer } The Buffer to write.
- * @param offset { Number } The offset to write the Buffer to.
- */
+ * Inserts a null-terminated Buffer.
+ *
+ * @param value { Buffer } The Buffer to write.
+ * @param offset { Number } The offset to write the Buffer to.
+ *
+ * @return this
+ */
insertBufferNT(value: Buffer, offset: number): SmartBuffer;
/**
- * Writes a null-terminated Buffer.
- *
- * @param value { Buffer } The Buffer to write.
- * @param offset { Number } The offset to write the Buffer to.
- */
+ * Writes a null-terminated Buffer.
+ *
+ * @param value { Buffer } The Buffer to write.
+ * @param offset { Number } The offset to write the Buffer to.
+ *
+ * @return this
+ */
writeBufferNT(value: Buffer, offset?: number): SmartBuffer;
/**
- * Clears the SmartBuffer instance to its original empty state.
- */
+ * Clears the SmartBuffer instance to its original empty state.
+ */
clear(): SmartBuffer;
/**
- * Gets the remaining data left to be read from the SmartBuffer instance.
- *
- * @return { Number }
- */
+ * Gets the remaining data left to be read from the SmartBuffer instance.
+ *
+ * @return { Number }
+ */
remaining(): number;
/**
- * Gets the current read offset value of the SmartBuffer instance.
- *
- * @return { Number }
- */
+ * Gets the current read offset value of the SmartBuffer instance.
+ *
+ * @return { Number }
+ */
/**
- * Sets the read offset value of the SmartBuffer instance.
- *
- * @param offset { Number } - The offset value to set.
- */
+ * Sets the read offset value of the SmartBuffer instance.
+ *
+ * @param offset { Number } - The offset value to set.
+ */
readOffset: number;
/**
- * Gets the current write offset value of the SmartBuffer instance.
- *
- * @return { Number }
- */
+ * Gets the current write offset value of the SmartBuffer instance.
+ *
+ * @return { Number }
+ */
/**
- * Sets the write offset value of the SmartBuffer instance.
- *
- * @param offset { Number } - The offset value to set.
- */
+ * Sets the write offset value of the SmartBuffer instance.
+ *
+ * @param offset { Number } - The offset value to set.
+ */
writeOffset: number;
/**
- * Gets the currently set string encoding of the SmartBuffer instance.
- *
- * @return { BufferEncoding } The string Buffer encoding currently set.
- */
+ * Gets the currently set string encoding of the SmartBuffer instance.
+ *
+ * @return { BufferEncoding } The string Buffer encoding currently set.
+ */
/**
- * Sets the string encoding of the SmartBuffer instance.
- *
- * @param encoding { BufferEncoding } The string Buffer encoding to set.
- */
+ * Sets the string encoding of the SmartBuffer instance.
+ *
+ * @param encoding { BufferEncoding } The string Buffer encoding to set.
+ */
encoding: BufferEncoding;
/**
- * Gets the underlying internal Buffer. (This includes unmanaged data in the Buffer)
- *
- * @return { Buffer } The Buffer value.
- */
+ * Gets the underlying internal Buffer. (This includes unmanaged data in the Buffer)
+ *
+ * @return { Buffer } The Buffer value.
+ */
readonly internalBuffer: Buffer;
/**
- * Gets the value of the internal managed Buffer (Includes managed data only)
- *
- * @param { Buffer }
- */
+ * Gets the value of the internal managed Buffer (Includes managed data only)
+ *
+ * @param { Buffer }
+ */
toBuffer(): Buffer;
/**
- * Gets the String value of the internal managed Buffer
- *
- * @param encoding { String } The BufferEncoding to display the Buffer as (defaults to instance level encoding).
- */
+ * Gets the String value of the internal managed Buffer
+ *
+ * @param encoding { String } The BufferEncoding to display the Buffer as (defaults to instance level encoding).
+ */
toString(encoding?: BufferEncoding): string;
/**
- * Destroys the SmartBuffer instance.
- */
+ * Destroys the SmartBuffer instance.
+ */
destroy(): SmartBuffer;
/**
- * Handles inserting and writing strings.
- *
- * @param value { String } The String value to insert.
- * @param isInsert { Boolean } True if inserting a string, false if writing.
- * @param arg2 { Number | String } The offset to insert the string at, or the BufferEncoding to use.
- * @param encoding { String } The BufferEncoding to use for writing strings (defaults to instance encoding).
- */
+ * Handles inserting and writing strings.
+ *
+ * @param value { String } The String value to insert.
+ * @param isInsert { Boolean } True if inserting a string, false if writing.
+ * @param arg2 { Number | String } The offset to insert the string at, or the BufferEncoding to use.
+ * @param encoding { String } The BufferEncoding to use for writing strings (defaults to instance encoding).
+ */
private _handleString(value, isInsert, arg3?, encoding?);
/**
- * Handles writing or insert of a Buffer.
- *
- * @param value { Buffer } The Buffer to write.
- * @param offset { Number } The offset to write the Buffer to.
- */
+ * Handles writing or insert of a Buffer.
+ *
+ * @param value { Buffer } The Buffer to write.
+ * @param offset { Number } The offset to write the Buffer to.
+ */
private _handleBuffer(value, isInsert, offset?);
/**
- * Ensures that the internal Buffer is large enough to read data.
- *
- * @param length { Number } The length of the data that needs to be read.
- * @param offset { Number } The offset of the data that needs to be read.
- */
+ * Ensures that the internal Buffer is large enough to read data.
+ *
+ * @param length { Number } The length of the data that needs to be read.
+ * @param offset { Number } The offset of the data that needs to be read.
+ */
private ensureReadable(length, offset?);
/**
- * Ensures that the internal Buffer is large enough to insert data.
- *
- * @param dataLength { Number } The length of the data that needs to be written.
- * @param offset { Number } The offset of the data to be written.
- */
+ * Ensures that the internal Buffer is large enough to insert data.
+ *
+ * @param dataLength { Number } The length of the data that needs to be written.
+ * @param offset { Number } The offset of the data to be written.
+ */
private ensureInsertable(dataLength, offset);
/**
- * Ensures that the internal Buffer is large enough to write data.
- *
- * @param dataLength { Number } The length of the data that needs to be written.
- * @param offset { Number } The offset of the data to be written (defaults to writeOffset).
- */
+ * Ensures that the internal Buffer is large enough to write data.
+ *
+ * @param dataLength { Number } The length of the data that needs to be written.
+ * @param offset { Number } The offset of the data to be written (defaults to writeOffset).
+ */
private _ensureWriteable(dataLength, offset?);
/**
- * Ensures that the internal Buffer is large enough to write at least the given amount of data.
- *
- * @param minLength { Number } The minimum length of the data needs to be written.
- */
+ * Ensures that the internal Buffer is large enough to write at least the given amount of data.
+ *
+ * @param minLength { Number } The minimum length of the data needs to be written.
+ */
private _ensureCapacity(minLength);
/**
- * Reads a numeric number value using the provided function.
- *
- * @param func { Function(offset: number) => number } The function to read data on the internal Buffer with.
- * @param byteSize { Number } The number of bytes read.
- * @param offset { Number } The offset to read from (optional). When this is not provided, the managed readOffset is used instead.
- *
- * @param { Number }
- */
+ * Reads a numeric number value using the provided function.
+ *
+ * @param func { Function(offset: number) => number } The function to read data on the internal Buffer with.
+ * @param byteSize { Number } The number of bytes read.
+ * @param offset { Number } The offset to read from (optional). When this is not provided, the managed readOffset is used instead.
+ *
+ * @param { Number }
+ */
private _readNumberValue(func, byteSize, offset?);
/**
- * Inserts a numeric number value based on the given offset and value.
- *
- * @param func { Function(offset: number, offset?) => number} The function to write data on the internal Buffer with.
- * @param byteSize { Number } The number of bytes written.
- * @param value { Number } The number value to write.
- * @param offset { Number } the offset to write the number at (REQUIRED).
- *
- */
+ * Inserts a numeric number value based on the given offset and value.
+ *
+ * @param func { Function(offset: number, offset?) => number} The function to write data on the internal Buffer with.
+ * @param byteSize { Number } The number of bytes written.
+ * @param value { Number } The number value to write.
+ * @param offset { Number } the offset to write the number at (REQUIRED).
+ *
+ */
private _insertNumberValue(func, byteSize, value, offset);
/**
- * Writes a numeric number value based on the given offset and value.
- *
- * @param func { Function(offset: number, offset?) => number} The function to write data on the internal Buffer with.
- * @param byteSize { Number } The number of bytes written.
- * @param value { Number } The number value to write.
- * @param offset { Number } the offset to write the number at (REQUIRED).
- *
- */
+ * Writes a numeric number value based on the given offset and value.
+ *
+ * @param func { Function(offset: number, offset?) => number} The function to write data on the internal Buffer with.
+ * @param byteSize { Number } The number of bytes written.
+ * @param value { Number } The number value to write.
+ * @param offset { Number } the offset to write the number at (REQUIRED).
+ *
+ */
private _writeNumberValue(func, byteSize, value, offset?);
- }
- export { SmartBufferOptions, SmartBuffer };
}
+export { SmartBufferOptions, SmartBuffer };