Skip to content

24d5b216 9c8b 0b3f 9ecc 4995830e9af6

Arthur Frederico Neves edited this page Jul 19, 2016 · 3 revisions

BasePack.GetFloat Method (Int32)

Converts a part of the inner buffer, started in readPosition, to a float.

Namespace: NETLIB
Assembly: NETLIB (in NETLIB.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

protected virtual float GetFloat(
	int offset
)

VB

Protected Overridable Function GetFloat ( 
	offset As Integer
) As Single

C++

protected:
virtual float GetFloat(
	int offset
)

F#

abstract GetFloat : 
        offset : int -> float32 
override GetFloat : 
        offset : int -> float32 

Parameters

 

offset
Type: System.Int32
Start position for the float conversion.

Return Value

Type: Single
Float converted from the inner buffer started in offset.

Exceptions

 

Exception Condition
ArgumentOutOfRangeException Throws when offset is larger than the inner buffer length minus sizeof(float).

See Also

Reference

BasePack Class
GetFloat Overload
NETLIB Namespace

Clone this wiki locally