''' <summary>
''' Convert integer to user byte array w/o any allocations.
''' </summary>
''' <param name="int">Integer</param>
''' <param name="DestinationBuffer">Byte array. Length must be greater then 3</param>
''' <param name="DestinationOffset">Position to write in the destination array</param>
<Runtime.CompilerServices.MethodImpl(Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)>
Public Overloads Shared Sub GetBytes(Int32 As Integer, ByRef DestinationBuffer As Byte(), DestinationOffset As Integer)
DestinationBuffer(DestinationOffset + 0) = CByte(Int32 And &HFF)
DestinationBuffer(DestinationOffset + 1) = CByte(Int32 >> 8 And &HFF)
DestinationBuffer(DestinationOffset + 2) = CByte(Int32 >> 16 And &HFF)
DestinationBuffer(DestinationOffset + 3) = CByte(Int32 >> 24 And &HFF)
End Sub