BitConverter.GetBytes (UInt64) returns 64-bit unsigned integer value as an array of bytes.
Imports System
Imports System.Globalization
Imports Microsoft.VisualBasic
Module GetBytesUInt64Demo
Sub GetBytesUInt64( argument As UInt64 )
Dim byteArray As Byte( ) = BitConverter.GetBytes( argument )
Console.WriteLine(BitConverter.ToString( byteArray ) )
End Sub
Sub Main( )
GetBytesUInt64( Convert.ToUInt64( &HFFFFFF ) )
End Sub
End Module