SDK Home Glossary Index Left Right Up

Big endian


Section contents


Overview

Defined in

csocket.oxh


Methods provided


BigEndianGet16

Usage

value% = BigEndianGet16%:(addr&)

Description

Returns the big endian 16 bit value pointed to by addr&.

Arguments
addr& Address of a 16 bit (2 byte) value
Return value
value% A 16 bit value
Error Handling

If addr& is not an address of an OPL variable then an error is generated which should be trapped by an ONERR handler.


BigEndianGet32

Usage

value& = BigEndianGet32&:(addr&)

Description

Returns the big endian 32 bit value pointed to by addr&.

Arguments
addr& Address of a 32 bit (4 byte) value
Return value
value& A 32 bit value
Error Handling

If addr& is not an address of an OPL variable then an error is generated which should be trapped by an ONERR handler.


BigEndianPut16

Usage

BigEndianPut16:(addr&,value%)

Description

Writes the 16 bit value as a big endian value at the location pointed to by addr&.

Arguments
addr& Address of a 16 bit (2 byte) value
value% A 16 bit value
Error Handling

If addr& is not an address of an OPL variable then an error is generated which should be trapped by an ONERR handler.


BigEndianPut32

Usage

BigEndianPut32:(addr&,value&)

Description

Writes the 32 bit value as a big endian value at the location pointed to by addr&.

Arguments
addr& Address of a 32 bit (4 byte) value
value& A 32 bit value
Error Handling

If addr& is not an address of an OPL variable then an error is generated which should be trapped by an ONERR handler.


  SDK Home Glossary Index Left Right Up