Merge pull request #9798 from cappellin/master

Added missing static definition of DEFAULT_ENDIAN and fixed bad signature
This commit is contained in:
Mohamed Hegazy
2016-06-24 00:53:03 -07:00
committed by GitHub

View File

@@ -23,6 +23,11 @@ declare class ByteBuffer
*/
static DEFAULT_CAPACITY: number;
/**
* Default endianess of false for big endian.
*/
static DEFAULT_ENDIAN: boolean;
/**
* Default no assertions flag of false.
*/
@@ -96,7 +101,7 @@ declare class ByteBuffer
/**
* Allocates a new ByteBuffer backed by a buffer of the specified capacity.
*/
static allocate( capacity?: number, littleEndian?: number, noAssert?: boolean ): ByteBuffer;
static allocate( capacity?: number, littleEndian?: boolean, noAssert?: boolean ): ByteBuffer;
/**
* Decodes a base64 encoded string to binary like window.atob does.