smart-buffer
Advanced tools
Comparing version 3.0.2 to 3.0.3
# Change Log | ||
## 3.0.3 | ||
> Released 02/19/2017 | ||
* Adds missing type definitions for some internal functions. | ||
## 3.0.2 | ||
> Released 02/17/2017 | ||
### Bug Fixes | ||
* Fixes a bug where using readString with a length of zero resulted in reading the remaining data instead of returning an empty string. (Fixed by Seldszar) | ||
## 3.0.1 | ||
@@ -3,0 +13,0 @@ > Released 02/15/2017 |
{ | ||
"name": "smart-buffer", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "A smarter Buffer that keeps track of its own read and write positions while growing endlessly.", | ||
@@ -5,0 +5,0 @@ "main": "build/smartbuffer.js", |
@@ -421,8 +421,14 @@ /// <reference types="node" /> | ||
/** | ||
* Ensures that the internal Buffer is large enough to read data. | ||
* | ||
* @param length { Number } The length of the data that needs to be read. | ||
*/ | ||
private ensureReadable(length: number); | ||
/** | ||
* Ensures that the internal Buffer is large enough to write data. | ||
* | ||
* | ||
* @param minLength { Number } The minimum length of the data that needs to be written. | ||
* @param offset { Number } The offset of the data to be written. | ||
*/ | ||
private ensureWriteable(minLength, offset?); | ||
private ensureWriteable(minLength: number, offset?: number); | ||
/** | ||
@@ -433,3 +439,3 @@ * Ensures that the internal Buffer is large enough to write at least the given amount of data. | ||
*/ | ||
private ensureCapacity(minLength); | ||
private ensureCapacity(minLength: number); | ||
/** | ||
@@ -443,3 +449,3 @@ * Reads a numeric number value using the provided function. | ||
*/ | ||
private readNumberValue(func, byteSize); | ||
private readNumberValue(func: (offset: number) => number, byteSize: number); | ||
} | ||
@@ -446,0 +452,0 @@ |
91554
1614