CSharp examples for System:Byte
fill Bytes Little Endian
/// Distributed under the Mozilla Public License * using System;/* w ww. j a v a 2 s.co m*/ public class Main{ public static void fillBytesLittleEndian(byte[] byteArray, long value_Renamed, int cnt, int index) { for (int i = 0; i < cnt; i++) { byteArray[index + i] = (byte) (value_Renamed & 0xff); value_Renamed >>= 8; } } }