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