System.TMarshal.ReadInt16

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function ReadInt16(Ptr: TPtrWrapper; Ofs: NativeInt = 0): Smallint;

Properties

Type Visibility Source Unit Parent
function public System.pas System TMarshal

Description

Reads a Smallint value from a block of memory.

ReadInt16 reads a 16-bit integer at offset Ofs from a block of memory referenced by the Ptr wrapped pointer.

ReadInt16 has an implied offset of 0.

See Also