Make parameter littleEndian in DataView methods optional
This commit is contained in:
parent
f92aa8681a
commit
6315f7302b
1 changed files with 12 additions and 12 deletions
24
src/lib/es6.d.ts
vendored
24
src/lib/es6.d.ts
vendored
|
@ -796,14 +796,14 @@ interface DataView {
|
||||||
* no alignment constraint; multi-byte values may be fetched from any offset.
|
* no alignment constraint; multi-byte values may be fetched from any offset.
|
||||||
* @param byteOffset The place in the buffer at which the value should be retrieved.
|
* @param byteOffset The place in the buffer at which the value should be retrieved.
|
||||||
*/
|
*/
|
||||||
getFloat32(byteOffset: number, littleEndian: boolean): number;
|
getFloat32(byteOffset: number, littleEndian?: boolean): number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the Float64 value at the specified byte offset from the start of the view. There is
|
* Gets the Float64 value at the specified byte offset from the start of the view. There is
|
||||||
* no alignment constraint; multi-byte values may be fetched from any offset.
|
* no alignment constraint; multi-byte values may be fetched from any offset.
|
||||||
* @param byteOffset The place in the buffer at which the value should be retrieved.
|
* @param byteOffset The place in the buffer at which the value should be retrieved.
|
||||||
*/
|
*/
|
||||||
getFloat64(byteOffset: number, littleEndian: boolean): number;
|
getFloat64(byteOffset: number, littleEndian?: boolean): number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the Int8 value at the specified byte offset from the start of the view. There is
|
* Gets the Int8 value at the specified byte offset from the start of the view. There is
|
||||||
|
@ -817,13 +817,13 @@ interface DataView {
|
||||||
* no alignment constraint; multi-byte values may be fetched from any offset.
|
* no alignment constraint; multi-byte values may be fetched from any offset.
|
||||||
* @param byteOffset The place in the buffer at which the value should be retrieved.
|
* @param byteOffset The place in the buffer at which the value should be retrieved.
|
||||||
*/
|
*/
|
||||||
getInt16(byteOffset: number, littleEndian: boolean): number;
|
getInt16(byteOffset: number, littleEndian?: boolean): number;
|
||||||
/**
|
/**
|
||||||
* Gets the Int32 value at the specified byte offset from the start of the view. There is
|
* Gets the Int32 value at the specified byte offset from the start of the view. There is
|
||||||
* no alignment constraint; multi-byte values may be fetched from any offset.
|
* no alignment constraint; multi-byte values may be fetched from any offset.
|
||||||
* @param byteOffset The place in the buffer at which the value should be retrieved.
|
* @param byteOffset The place in the buffer at which the value should be retrieved.
|
||||||
*/
|
*/
|
||||||
getInt32(byteOffset: number, littleEndian: boolean): number;
|
getInt32(byteOffset: number, littleEndian?: boolean): number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the Uint8 value at the specified byte offset from the start of the view. There is
|
* Gets the Uint8 value at the specified byte offset from the start of the view. There is
|
||||||
|
@ -837,14 +837,14 @@ interface DataView {
|
||||||
* no alignment constraint; multi-byte values may be fetched from any offset.
|
* no alignment constraint; multi-byte values may be fetched from any offset.
|
||||||
* @param byteOffset The place in the buffer at which the value should be retrieved.
|
* @param byteOffset The place in the buffer at which the value should be retrieved.
|
||||||
*/
|
*/
|
||||||
getUint16(byteOffset: number, littleEndian: boolean): number;
|
getUint16(byteOffset: number, littleEndian?: boolean): number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the Uint32 value at the specified byte offset from the start of the view. There is
|
* Gets the Uint32 value at the specified byte offset from the start of the view. There is
|
||||||
* no alignment constraint; multi-byte values may be fetched from any offset.
|
* no alignment constraint; multi-byte values may be fetched from any offset.
|
||||||
* @param byteOffset The place in the buffer at which the value should be retrieved.
|
* @param byteOffset The place in the buffer at which the value should be retrieved.
|
||||||
*/
|
*/
|
||||||
getUint32(byteOffset: number, littleEndian: boolean): number;
|
getUint32(byteOffset: number, littleEndian?: boolean): number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stores an Float32 value at the specified byte offset from the start of the view.
|
* Stores an Float32 value at the specified byte offset from the start of the view.
|
||||||
|
@ -853,7 +853,7 @@ interface DataView {
|
||||||
* @param littleEndian If false or undefined, a big-endian value should be written,
|
* @param littleEndian If false or undefined, a big-endian value should be written,
|
||||||
* otherwise a little-endian value should be written.
|
* otherwise a little-endian value should be written.
|
||||||
*/
|
*/
|
||||||
setFloat32(byteOffset: number, value: number, littleEndian: boolean): void;
|
setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stores an Float64 value at the specified byte offset from the start of the view.
|
* Stores an Float64 value at the specified byte offset from the start of the view.
|
||||||
|
@ -862,7 +862,7 @@ interface DataView {
|
||||||
* @param littleEndian If false or undefined, a big-endian value should be written,
|
* @param littleEndian If false or undefined, a big-endian value should be written,
|
||||||
* otherwise a little-endian value should be written.
|
* otherwise a little-endian value should be written.
|
||||||
*/
|
*/
|
||||||
setFloat64(byteOffset: number, value: number, littleEndian: boolean): void;
|
setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stores an Int8 value at the specified byte offset from the start of the view.
|
* Stores an Int8 value at the specified byte offset from the start of the view.
|
||||||
|
@ -878,7 +878,7 @@ interface DataView {
|
||||||
* @param littleEndian If false or undefined, a big-endian value should be written,
|
* @param littleEndian If false or undefined, a big-endian value should be written,
|
||||||
* otherwise a little-endian value should be written.
|
* otherwise a little-endian value should be written.
|
||||||
*/
|
*/
|
||||||
setInt16(byteOffset: number, value: number, littleEndian: boolean): void;
|
setInt16(byteOffset: number, value: number, littleEndian?: boolean): void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stores an Int32 value at the specified byte offset from the start of the view.
|
* Stores an Int32 value at the specified byte offset from the start of the view.
|
||||||
|
@ -887,7 +887,7 @@ interface DataView {
|
||||||
* @param littleEndian If false or undefined, a big-endian value should be written,
|
* @param littleEndian If false or undefined, a big-endian value should be written,
|
||||||
* otherwise a little-endian value should be written.
|
* otherwise a little-endian value should be written.
|
||||||
*/
|
*/
|
||||||
setInt32(byteOffset: number, value: number, littleEndian: boolean): void;
|
setInt32(byteOffset: number, value: number, littleEndian?: boolean): void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stores an Uint8 value at the specified byte offset from the start of the view.
|
* Stores an Uint8 value at the specified byte offset from the start of the view.
|
||||||
|
@ -903,7 +903,7 @@ interface DataView {
|
||||||
* @param littleEndian If false or undefined, a big-endian value should be written,
|
* @param littleEndian If false or undefined, a big-endian value should be written,
|
||||||
* otherwise a little-endian value should be written.
|
* otherwise a little-endian value should be written.
|
||||||
*/
|
*/
|
||||||
setUint16(byteOffset: number, value: number, littleEndian: boolean): void;
|
setUint16(byteOffset: number, value: number, littleEndian?: boolean): void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stores an Uint32 value at the specified byte offset from the start of the view.
|
* Stores an Uint32 value at the specified byte offset from the start of the view.
|
||||||
|
@ -912,7 +912,7 @@ interface DataView {
|
||||||
* @param littleEndian If false or undefined, a big-endian value should be written,
|
* @param littleEndian If false or undefined, a big-endian value should be written,
|
||||||
* otherwise a little-endian value should be written.
|
* otherwise a little-endian value should be written.
|
||||||
*/
|
*/
|
||||||
setUint32(byteOffset: number, value: number, littleEndian: boolean): void;
|
setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;
|
||||||
|
|
||||||
[Symbol.toStringTag]: string;
|
[Symbol.toStringTag]: string;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue