System.Types.TBitConverter.UnsafeInTo
Delphi
class function UnsafeInTo<T>(const B: TArray<Byte>; Offset: Integer = 0): T; static; inline;
C++
T __fastcall TBitConverter::UnsafeInTo(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 UnsafeInTo skips the specified number of bytes at the beginning of B
.
UnsafeInTo does not check that the size of the specified type T
fits B
at the specified offset. If you want a function that performs this check for you on every call, use InTo instead.