About 13,600,000 results
Open links in new tab
  1. How do I initialize a byte array in Java? - Stack Overflow

    Jun 26, 2012 · I have to store some constant values (UUIDs) in byte array form in java, and I'm wondering what the best way to initialize those static arrays would be. This is how I'm currently …

  2. Convert integer into byte array (Java) - Stack Overflow

    Dec 20, 2009 · byte[] array = v.toByteArray(); However, you will need to watch out, if the first byte is higher 0x7F (as is in this case), where BigInteger would insert a 0x00 byte to the beginning …

  3. Can endianness refer to the order of bits in a byte?

    Endianness and byte order When a value larger than byte is stored or serialized into multiple bytes, the choice of the order in which the component bytes are stored is called byte order, or …

  4. 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?

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

    Oct 17, 2012 · How to convert byte[] to Byte[] and also Byte[] to byte[], in the case of not using any 3rd party library? Is there a way to do it fast just using the standard library?

  6. Java Byte Array to String to Byte Array - Stack Overflow

    To convert your response string back to the original byte array, you have to use split(",") or something and convert it into a collection and then convert each individual item in there to a …

  7. What is the difference between a string and a byte string?

    Sep 3, 2022 · A byte string can be directly stored to the disk directly, while a string (character string) cannot be directly stored on the disk. The mapping between them is an encoding.

  8. UnicodeDecodeError, invalid continuation byte - Stack Overflow

    Dec 11, 2016 · Latin-1 is a single byte encoding family so everything in it should be defined in UTF-8. But why sometime Latin-1 wins?

  9. 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 …

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

    Oct 13, 2011 · The byte is the smallest addressable unit for a CPU. If you want to set/clear single bits, you first need to fetch the corresponding byte from memory, mess with the bits and then …