JavaScript DataView.getUint32()

The JavaScript DataView.getUint32() method inserts an unsigned 32-bit integer number at a specified location.

Syntax:

dataview.getUint32(byteOffset)

Parameters: byteoffset: It represents the offset (in byte) from the start of the data view.

Return: The unsigned integer number of 32-bit.

Example:

<!DOCTYPE html>
<html>
<body>
<script>
var dv = new ArrayBuffer(8);
var a = new DataView(dv);
a.setUint32(1,65468565.98);
document.write(a.getUint32(1));
</script>
</body>
</html>
Please follow and like us:
Content Protection by DMCA.com