Home Reference Source Repository
import BinaryReader from 'dh3dlib/js/util/BinaryReader.js'
public class | source

BinaryReader

BinaryReader class

Constructor Summary

Public Constructor
public

constructor(url: string, bigEndian: boolean, encoding: string, onload: function, onerror: function)

constructor

Member Summary

Public Members
public
public

data: *

public
public
public
public
public

parser: *

public
public

Method Summary

Public Methods
public
public

readByte(): *

public

readData(length: *): *

public

readDouble(): *

public

readFloat(): *

public

readInt(): *

public

readInteger(length: *, signed: *): *

public

readShort(): *

public

readString(length: *): *

public
public
public
public

skipBytes(length: *): *

Public Constructors

public constructor(url: string, bigEndian: boolean, encoding: string, onload: function, onerror: function) source

constructor

Params:

NameTypeAttributeDescription
url string
bigEndian boolean
encoding string
onload function
onerror function

Public Members

public bigEndian: * source

public data: * source

public encoding: * source

public eof: boolean source

public onerrorFunc: * source

public onloadFunc: * source

public parser: * source

public position: number source

public url: string source

Public Methods

public hasBytesAvailable(length: number): * source

Params:

NameTypeAttributeDescription
length number
  • optional
  • default: 1

Return:

*

public readByte(): * source

Return:

*

public readData(length: *): * source

Params:

NameTypeAttributeDescription
length *

Return:

*

public readDouble(): * source

Return:

*

public readFloat(): * source

Return:

*

public readInt(): * source

Return:

*

public readInteger(length: *, signed: *): * source

Params:

NameTypeAttributeDescription
length *
signed *

Return:

*

public readShort(): * source

Return:

*

public readString(length: *): * source

Params:

NameTypeAttributeDescription
length *

Return:

*

public readUnsignedByte(): * source

Return:

*

public readUnsignedInt(): * source

Return:

*

public readUnsignedShort(): * source

Return:

*

public skipBytes(length: *): * source

Params:

NameTypeAttributeDescription
length *

Return:

*