| Description |
|
Mutiplies the array length by the PrimitiveType size, in bytes, to give the total array (buffer) size.
|
| | Notes | Static methods are not methods of an object - they are simply class functions or procedures available at any time.
|
|
| Microsoft MSDN Links |
System
System.Buffer
|
|
|
| A simple example |
program Project1;
{$APPTYPE CONSOLE}
var
buffer : Array of Int64;
buffLen : Integer;
begin
// Set the array to be 5 elements of Int64's : 5 * 8 bytes = 40 total
setLength(buffer, 5);
buffLen := System.Buffer.ByteLength(buffer);
Console.WriteLine('ByteLength = ' + buffLen.ToString);
Console.ReadLine;
end.
| | Show full unit code | ByteLength = 40
|
| |
|
|
|