private static void ToBytes(uint input, byte[] output, int outputOffset) { unchecked { output[outputOffset] = (byte)input; output[outputOffset + 1] = (byte)(input >> 8); output[outputOffset + 2] = (byte)(input >> 16); output[outputOffset + 3] = (byte)(input >> 24); } }