Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
jDataView
Class jDataView
Index
Interfaces
Buffer
Bytes
Classes
Int64
Uint64
Constructor methods
constructor
Properties
buffer
byteLength
byteOffset
Methods
createBuffer
getBytes
getChar
getFloat32
getFloat64
getInt16
getInt32
getInt64
getInt8
getSigned
getString
getUint16
getUint32
getUint64
getUint8
getUnsigned
seek
setBytes
setChar
setFloat32
setFloat64
setInt16
setInt32
setInt64
setInt8
setSigned
setString
setUint16
setUint32
setUint64
setUint8
setUnsigned
skip
slice
tell
wrapBuffer
writeBytes
writeChar
writeFloat32
writeFloat64
writeInt16
writeInt32
writeInt64
writeInt8
writeSigned
writeString
writeUint16
writeUint32
writeUint64
writeUint8
writeUnsigned
Interfaces
Buffer
:
Buffer
(
index
:
number
)
:
number
Parameters
index:
number
Returns
number
public
byteLength
:
number
public
length
:
number
Bytes
:
Bytes
(
index
:
number
)
:
number
Parameters
index:
number
Returns
number
public
length
:
number
Classes
Int64
:
Int64
constructor
(
lo
:
number
, hi
:
number
)
:
Uint64
Parameters
lo:
number
hi:
number
Returns
Uint64
public
hi
:
number
public
lo
:
number
public
static
fromNumber
(
number
:
number
)
:
Int64
Parameters
number:
number
Returns
Int64
public
valueOf
(
)
:
number
Returns
number
Uint64
:
Uint64
constructor
(
lo
:
number
, hi
:
number
)
:
Uint64
Parameters
lo:
number
hi:
number
Returns
Uint64
public
hi
:
number
public
lo
:
number
public
static
fromNumber
(
number
:
number
)
:
Uint64
Parameters
number:
number
Returns
Uint64
public
valueOf
(
)
:
number
Returns
number
Constructor methods
constructor
(
byteCount
:
number
, offset
?:
number
, length
?:
number
, littleEndian
?:
boolean
)
:
jDataView
Parameters
byteCount:
number
offset?:
number
optional
length?:
number
optional
littleEndian?:
boolean
optional
Returns
jDataView
constructor
(
buffer
:
string
, offset
?:
number
, length
?:
number
, littleEndian
?:
boolean
)
:
jDataView
Parameters
buffer:
string
offset?:
number
optional
length?:
number
optional
littleEndian?:
boolean
optional
Returns
jDataView
constructor
(
buffer
:
Bytes
, offset
?:
number
, length
?:
number
, littleEndian
?:
boolean
)
:
jDataView
Parameters
buffer:
Bytes
offset?:
number
optional
length?:
number
optional
littleEndian?:
boolean
optional
Returns
jDataView
Properties
public
buffer
:
any
public
byteLength
:
number
public
byteOffset
:
number
Methods
public
createBuffer
(
bytes
?:
Array<number>
)
:
Buffer
Parameters
bytes?:
Array<number>
optional
Returns
Buffer
public
getBytes
(
length
:
number
, byteOffset
?:
number
, littleEndian
?:
boolean
, toArray
?:
boolean
)
:
Array<number>
Parameters
length:
number
byteOffset?:
number
optional
littleEndian?:
boolean
optional
toArray?:
boolean
optional
Returns
Array<number>
public
getChar
(
byteOffset
?:
number
)
:
string
Parameters
byteOffset?:
number
optional
Returns
string
public
getFloat32
(
byteOffset
?:
number
, littleEndian
?:
boolean
)
:
number
Parameters
byteOffset?:
number
optional
littleEndian?:
boolean
optional
Returns
number
public
getFloat64
(
byteOffset
?:
number
, littleEndian
?:
boolean
)
:
number
Parameters
byteOffset?:
number
optional
littleEndian?:
boolean
optional
Returns
number
public
getInt16
(
byteOffset
?:
number
, littleEndian
?:
boolean
)
:
number
Parameters
byteOffset?:
number
optional
littleEndian?:
boolean
optional
Returns
number
public
getInt32
(
byteOffset
?:
number
, littleEndian
?:
boolean
)
:
number
Parameters
byteOffset?:
number
optional
littleEndian?:
boolean
optional
Returns
number
public
getInt64
(
byteOffset
?:
number
, littleEndian
?:
boolean
)
:
Int64
Parameters
byteOffset?:
number
optional
littleEndian?:
boolean
optional
Returns
Int64
public
getInt8
(
byteOffset
?:
number
)
:
number
Parameters
byteOffset?:
number
optional
Returns
number
public
getSigned
(
bitLength
:
number
, byteOffset
?:
number
)
:
number
Parameters
bitLength:
number
byteOffset?:
number
optional
Returns
number
public
getString
(
byteLength
:
number
, byteOffset
?:
number
, encoding
?:
string
)
:
string
Parameters
byteLength:
number
byteOffset?:
number
optional
encoding?:
string
optional
Returns
string
public
getUint16
(
byteOffset
?:
number
, littleEndian
?:
boolean
)
:
number
Parameters
byteOffset?:
number
optional
littleEndian?:
boolean
optional
Returns
number
public
getUint32
(
byteOffset
?:
number
, littleEndian
?:
boolean
)
:
number
Parameters
byteOffset?:
number
optional
littleEndian?:
boolean
optional
Returns
number
public
getUint64
(
byteOffset
?:
number
, littleEndian
?:
boolean
)
:
Uint64
Parameters
byteOffset?:
number
optional
littleEndian?:
boolean
optional
Returns
Uint64
public
getUint8
(
byteOffset
?:
number
)
:
number
Parameters
byteOffset?:
number
optional
Returns
number
public
getUnsigned
(
bitLength
:
number
, byteOffset
?:
number
)
:
number
Parameters
bitLength:
number
byteOffset?:
number
optional
Returns
number
public
seek
(
byteOffset
:
number
)
:
number
Parameters
byteOffset:
number
Returns
number
public
setBytes
(
byteOffset
:
number
, bytes
:
Array<number>
, littleEndian
?:
boolean
)
Parameters
byteOffset:
number
bytes:
Array<number>
littleEndian?:
boolean
optional
public
setChar
(
byteOffset
:
number
, char
:
string
)
Parameters
byteOffset:
number
char:
string
public
setFloat32
(
byteOffset
:
number
, value
:
number
, littleEndian
?:
boolean
)
Parameters
byteOffset:
number
value:
number
littleEndian?:
boolean
optional
public
setFloat64
(
byteOffset
:
number
, value
:
number
, littleEndian
?:
boolean
)
Parameters
byteOffset:
number
value:
number
littleEndian?:
boolean
optional
public
setInt16
(
byteOffset
:
number
, value
:
number
, littleEndian
?:
boolean
)
Parameters
byteOffset:
number
value:
number
littleEndian?:
boolean
optional
public
setInt32
(
byteOffset
:
number
, value
:
number
, littleEndian
?:
boolean
)
Parameters
byteOffset:
number
value:
number
littleEndian?:
boolean
optional
public
setInt64
(
byteOffset
:
number
, value
:
Int64
, littleEndian
?:
boolean
)
Parameters
byteOffset:
number
value:
Int64
littleEndian?:
boolean
optional
public
setInt8
(
byteOffset
:
number
, value
:
number
)
Parameters
byteOffset:
number
value:
number
public
setSigned
(
byteOffset
:
number
, value
:
number
, bitLength
:
number
)
Parameters
byteOffset:
number
value:
number
bitLength:
number
public
setString
(
byteOffset
:
number
, chars
:
string
, encoding
?:
string
)
Parameters
byteOffset:
number
chars:
string
encoding?:
string
optional
public
setUint16
(
byteOffset
:
number
, value
:
number
, littleEndian
?:
boolean
)
Parameters
byteOffset:
number
value:
number
littleEndian?:
boolean
optional
public
setUint32
(
byteOffset
:
number
, value
:
number
, littleEndian
?:
boolean
)
Parameters
byteOffset:
number
value:
number
littleEndian?:
boolean
optional
public
setUint64
(
byteOffset
:
number
, value
:
Uint64
, littleEndian
?:
boolean
)
Parameters
byteOffset:
number
value:
Uint64
littleEndian?:
boolean
optional
public
setUint8
(
byteOffset
:
number
, value
:
number
)
Parameters
byteOffset:
number
value:
number
public
setUnsigned
(
byteOffset
:
number
, value
:
number
, bitLength
:
number
)
Parameters
byteOffset:
number
value:
number
bitLength:
number
public
skip
(
byteLength
:
number
)
:
number
Parameters
byteLength:
number
Returns
number
public
slice
(
start
:
number
, end
?:
number
, forceCopy
?:
boolean
)
:
jDataView
Parameters
start:
number
end?:
number
optional
forceCopy?:
boolean
optional
Returns
jDataView
public
tell
(
)
:
number
Returns
number
public
wrapBuffer
(
string
:
string
)
:
Buffer
Parameters
string:
string
Returns
Buffer
public
wrapBuffer
(
bytes
:
Bytes
)
:
Buffer
Parameters
bytes:
Bytes
Returns
Buffer
public
wrapBuffer
(
byteCount
:
number
)
:
Buffer
Parameters
byteCount:
number
Returns
Buffer
public
writeBytes
(
bytes
:
Array<number>
, littleEndian
?:
boolean
)
Parameters
bytes:
Array<number>
littleEndian?:
boolean
optional
public
writeChar
(
char
:
string
)
Parameters
char:
string
public
writeFloat32
(
value
:
number
, littleEndian
?:
boolean
)
Parameters
value:
number
littleEndian?:
boolean
optional
public
writeFloat64
(
value
:
number
, littleEndian
?:
boolean
)
Parameters
value:
number
littleEndian?:
boolean
optional
public
writeInt16
(
value
:
number
, littleEndian
?:
boolean
)
Parameters
value:
number
littleEndian?:
boolean
optional
public
writeInt32
(
value
:
number
, littleEndian
?:
boolean
)
Parameters
value:
number
littleEndian?:
boolean
optional
public
writeInt64
(
value
:
Int64
, littleEndian
?:
boolean
)
Parameters
value:
Int64
littleEndian?:
boolean
optional
public
writeInt8
(
value
:
number
)
Parameters
value:
number
public
writeSigned
(
value
:
number
, bitLength
:
number
)
Parameters
value:
number
bitLength:
number
public
writeString
(
chars
:
string
, encoding
?:
string
)
Parameters
chars:
string
encoding?:
string
optional
public
writeUint16
(
value
:
number
, littleEndian
?:
boolean
)
Parameters
value:
number
littleEndian?:
boolean
optional
public
writeUint32
(
value
:
number
, littleEndian
?:
boolean
)
Parameters
value:
number
littleEndian?:
boolean
optional
public
writeUint64
(
value
:
Uint64
, littleEndian
?:
boolean
)
Parameters
value:
Uint64
littleEndian?:
boolean
optional
public
writeUint8
(
value
:
number
)
Parameters
value:
number
public
writeUnsigned
(
value
:
number
, bitLength
:
number
)
Parameters
value:
number
bitLength:
number
Globals