Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

C# int to byte Array

int number;
byte[] bytes = BitConverter.GetBytes(number);
if (BitConverter.IsLittleEndian)
    Array.Reverse(bytes);
Source by maxo.blog #
 
PREVIOUS NEXT
Tagged: #int #byte #Array
ADD COMMENT
Topic
Name
4+9 =