Skip to content

f714ae88 db2a 3c02 8733 4af24afc636d

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

BasePack.PutFloat Method (Single, Int32)

Converts a float to a byte buffer and put in the inner buffer, started in offset.

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

Syntax

C#

protected virtual void PutFloat(
	float value,
	int offset
)

VB

Protected Overridable Sub PutFloat ( 
	value As Single,
	offset As Integer
)

C++

protected:
virtual void PutFloat(
	float value, 
	int offset
)

F#

abstract PutFloat : 
        value : float32 * 
        offset : int -> unit 
override PutFloat : 
        value : float32 * 
        offset : int -> unit 

Parameters

 

value
Type: System.Single
Float to be writed in the inner buffer.
offset
Type: System.Int32
Start position to put the float.

Exceptions

 

Exception Condition
ArgumentOutOfRangeException Throws when offset plus the size of a float is larger or equal than the buffer length.

See Also

Reference

BasePack Class
PutFloat Overload
NETLIB Namespace

Clone this wiki locally