System.Types.TBitConverter.InTo
Delphi
class function InTo<T>(const B: TArray<Byte>; Offset: Integer = 0): T; static;
C++
__fastcall TBitConverter::InTo(const System::DynamicArray<System::Byte> B, int Offset)
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Types.pas SystemTypes.h |
System.Types | TBitConverter |
Description
Returns a value of the specified type generated from the data in the specified arrays of bytes .
You may specify an Offset
so that InTo skips the specified number of bytes at the beginning of B
.
If the size of the specified type T
does not fit B
at the specified offset, InTo raises a run-time error with code reRangeError
. There is an unsafe version of this method, UnsafeInTo, which performs better because it does not check that the value of Offset
is valid.