About 50 results
Open links in new tab
  1. c++ - Including Windows.h is producing errors of: 'byte': ambiguous ...

    Dec 6, 2025 · I'm getting many errors of the following type. Clearly, Microsoft has a definition of byte that clashes with Standard C++'s definition of std::byte (after a using namespace std, that I use in hund...

  2. How do you convert a byte array to a hexadecimal string, and vice versa?

    Nov 22, 2008 · Because a byte is two nibbles, any hex string that validly represents a byte array must have an even character count. A 0 should not be added anywhere - to add one would be making an …

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

  4. .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, …

  5. Convert bytes to a string in Python 3 - Stack Overflow

    Mar 3, 2009 · 430 Decode the byte string and turn it in to a character (Unicode) string. Python 3:

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

  7. Error running Python script: 'utf-8' codec can't decode byte 0xed in ...

    Dec 3, 2025 · Unexpected error: 'utf-8' codec can't decode byte 0xed in position 79: invalid continuation byte I already tried saving the file as ANSI, verified that it is saved as UTF-8, and nothing seems to …

  8. UnicodeDecodeError: 'utf8' codec can't decode byte 0xa5 in position 0 ...

    Mar 6, 2014 · data.decode() # UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte You probably want to read the image into a numeric array in the first place, so the …

  9. binary - Why does a byte only have 0 to 255? - Stack Overflow

    Feb 13, 2011 · On a binary computer a byte must therefore be composed of six bits; on a decimal computer we have two digits per byte.* - The Art of Computer Programming, Volume 1, written by …

  10. java - Converting char [] to byte [] - Stack Overflow

    Apr 1, 2011 · I would like to convert a character array to a byte array in Java. What methods exists for making this conversion?