Top "Byte" questions

A unit of information usually corresponding to 8 bits.

Convert Byte Array into Bitset

I have a byte array generated by a random number generator. I want to put this into the STL bitset. …

c++ byte bitset
C/C++ packing signed char into int

I have need to pack four signed bytes into 32-bit integral type. this is what I came up to: int32_…

c++ c byte signed packing
Convert Bytes to bits

I'm working with java. I have a byte array (8 bits in each position of the array) and what I need …

java types byte bitset
How to convert byte[] array to IntPtr?

Possible Duplicate: How to get IntPtr from byte[] in C# I'm reading strings from memory with byte[] array = reader.ReadProcessMemory((…

c# byte intptr readprocessmemory
How to set sockaddr_in6::sin6_addr byte order to network byte order?

I developing a network application and using socket APIs. I want to set sin6_addr byte order of sockaddr_in6 …

sockets networking byte htonl
Converting sbyte to byte

I have a variable of type sbyte and would like to copy the content to a byte. The conversion wouldn't …

c# byte bits
How do I get binary byte length in Erlang?

If I have the following binary: <<32,16,10,9,108,111,99,97,108,104,111,115,116,16,170,31>> How can I know what length it has?

binary erlang byte packet
How do I find the number of bytes within UTF-8 string with PHP?

I have the following function from the php.net site to determine the # of bytes in an ASCII and UTF-8 …

php string utf-8 byte strlen
Why isn't the size of a bool data type only 1 bit in C#?

I am just learning C# and looking deeper into data types. Why isn't a bool data type 1 bit in size? …

c# types boolean byte bit
How does MySQL varchar know how many bytes indicate the length?

The MySQL manual and several StackOverflow answers make it clear that varchar uses: 1 byte for varchars with 0-255 characters in …

mysql char byte varchar maxlength