About 12,300,000 results
Open links in new tab
  1. .net - What is a byte [] array? - Stack Overflow

    Jun 28, 2015 · A byte is 8 bits, and an array of byte, is an array of bytes... It really is that simple. The thing to keep in mind is that char and byte are different. In old C style, a char and byte …

  2. c# - byte[] to hex string - Stack Overflow

    Mar 8, 2009 · How do I convert a byte[] to a string? Every time I attempt it, I get System.Byte[] instead of the value. Also, how do I get the value in Hex instead of a decimal?

  3. c# - Literal suffix for byte in .NET? - Stack Overflow

    Mar 21, 2011 · There is no mention of a literal suffix on the MSDN reference for Byte as well as in the C# 4.0 Language Specification. The only literal suffixes in C# are for integer and real …

  4. How do I initialize a byte array in Java? - Stack Overflow

    Jun 26, 2012 · In Java 6, there is a method doing exactly what you want: private static final byte[] CDRIVES = javax.xml.bind.DatatypeConverter.parseHexBinary ...

  5. How to convert byte[] to Byte[] and the other way around?

    Mar 23, 2020 · Step back. Look at the bigger picture. You're stuck converting byte[] to Byte[] or vice versa because of Java's strict type casing with something like this. List< Byte> or …

  6. java - Byte [] to InputStream or OutputStream - Stack Overflow

    Jan 19, 2010 · so you end up with a byte[]. this could represent any kind of data which may need special types of conversions (character, encrypted, etc). let's pretend you want to write this …

  7. c - Understanding Byte swapping - Stack Overflow

    For example, to get the nth byte of the integer I found this response: int x = (number >> (8*n)) & 0xff; Even though I understand the bit shifting component (shifting 8n digits to the right) I don't …

  8. java - What do we mean by Byte array? - Stack Overflow

    Oct 26, 2010 · A byte is 8 bits (binary data). A byte array is an array of bytes (tautology FTW!). You could use a byte array to store a collection of binary data, for example, the contents of a …

  9. What's the difference between a word and byte? - Stack Overflow

    Oct 13, 2011 · The C++ standard defines ‘byte’ as “Addressable unit of data large enough to hold any member of the basic character set of the execution environment.” What this means is that …

  10. How to get the value of individual bytes of a variable?

    Dec 30, 2011 · You have to know the number of bits (often 8) in each "byte". Then you can extract each byte in turn by ANDing the int with the appropriate mask. Imagine that an int is 32 bits, …

Refresh