Top "Bitconverter" questions

Class in C# and Java that converts base data types to an array of bytes, and an array of bytes to base data types.

Converting from hex to string

I need to check for a string located inside a packet that I receive as byte array. If I use …

c# string hex bitconverter
Byte[] to ASCII

I received the contents of a text file returned in binary values: Byte[] buf = new Byte[size]; stream = File.InputStream; …

c# .net file-upload bitconverter
Converting hex to string in C?

Hello I am using digi dynamic c. I am trying to convert this in to string char readingreg[4]; readingreg[0] = 4a; …

c arrays hex converter bitconverter
Convert binary string to binary or decimal value

Is there any function to convert binary string into binary or decimal value? If I have a binary string 000101, what …

r binary typeconverter valueconverter bitconverter
C# generics: cast generic type to value type

I have a generic class which saves value for the specified type T. The value can be an int, uint, …

c# generics casting bitconverter
Converting raw byte data to float[]

I have this code for converting a byte[] to float[]. public float[] ConvertByteToFloat(byte[] array) { float[] floatArr = new float[array.…

c# byte bitconverter
How to convert last 4 bytes in an array to an integer?

If I have an Uint8Array array in JavaScript, how would I get the last four bytes and then convert …

javascript integer bytearray bitconverter
How to convert unsigned integer to signed integer without OverflowException

I would like to be able to convert a high-valued unsigned-integer (a value that uses the highest-order bit) to a …

.net vb.net casting bitconverter overflowexception
Fast casting in C# using BitConverter, can it be any faster?

In our application, we have a very large byte-array and we have to convert these bytes into different types. Currently, …

c# .net casting bitconverter
C# Byte[] to long reverse not working

Why is this program not working? I convert a byte array to long. Then from the long I convert back …

c# bytearray long-integer bitconverter