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

    Jun 28, 2015 · 21 In .NET, a byte is basically a number from 0 to 255 (the numbers that can be represented by eight bits). So, a byte array is just an array of the numbers 0 - 255. At a lower level, …

  2. 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 doing …

  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 endian, or …

  4. 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 file. The …

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

    Mar 23, 2020 · 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 byte to recreate …

  7. arrays - What exactly is byte [] in C#? - Stack Overflow

    Dec 2, 2016 · In C#, byte is the data type for 8-bit unsigned integers, so a byte [] should be an array of integers who are between 0 and 255, just like an char [] is an array of characters.

  8. Initialize a byte array to a certain value, other than the default null?

    May 27, 2011 · //Initialize all of the variables to spaces. int index = 0; foreach (byte b in UserCode) { UserCode[index] = 0x20; index++; } This works fine, but I'm sure there must be a simpler way to do …

  9. Does a strings length equal the byte size? - Stack Overflow

    Jan 3, 2009 · Nope. A zero terminated string has one extra byte. A pascal string (the Delphi shortstring) has an extra byte for the length. And unicode strings has more than one byte per character. By …

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

    Jan 19, 2010 · I have a blob column in my database table, for which I have to use byte[] in my Java program as a mapping and to use this data I have to convert it to InputStream or OutputStream. But I …