About 9,350,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. 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 ...

  4. How many characters can you store with 1 byte? - Stack Overflow

    Jan 23, 2014 · 1 byte = 8 bits So, does this mean 1 byte can only hold one character? E.g.: "16" uses 2 bytes , "9" uses 1 byte , "a" uses 1 byte, "b" uses 1 byte and if tiny int has range of 0 …

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

    Dec 20, 2009 · This is a perfectly fine answer. Note that big-endian is the specified default, and the methods are "chainable", and the position argument is optional, so it all reduces to: byte[] …

  6. Is there 'byte' data type in C++? - Stack Overflow

    Aug 28, 2023 · namespace std { // define std::byte enum class byte : unsigned char {}; }; This if your C++ version does not have std::byte will define a byte type in namespace std. Normally …

  7. byte and ambiguous symbol due to using declarations?

    Jul 16, 2017 · It was written in the early 1990s, and used unscoped byte because C++ namespaces were not available. Namespaces appeared about 5 years later. When …

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

    I'm trying to understand a byte[] to string, string representation of byte[] to byte[] conversion... I convert my byte[] to a string to send, I then expect my web service (written in python) to echo …

  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. Why is the range of bytes -128 to 127 in Java? - Stack Overflow

    Without getting into two's complement: 2^8 (since a byte is 8 digits and can have 1 of 2 values) = 256, so the most individual values a byte can represent is 256. so, representing the numbers …

Refresh