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

    0 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 …

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

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

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

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

  7. math - Converting bytes to megabytes - Stack Overflow

    I've seen three ways of doing conversion from bytes to megabytes: megabytes=bytes/1000000 megabytes=bytes/1024/1024 megabytes=bytes/1024/1000 Ok, I think #3 is totally wrong but I …

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

  9. c# - Comparing two byte arrays in .NET - Stack Overflow

    28 .NET 3.5 and newer have a new public type, System.Data.Linq.Binary that encapsulates byte[]. It implements IEquatable<Binary> that (in effect) compares two byte arrays. Note that …

  10. Is the size of C "int" 2 bytes or 4 bytes? - Stack Overflow

    And you should find better textbooks. A textbook that says an int is 2 bytes (a) probably refers to an old system, and (b) fails to make it clear that the size will vary from one system to another. …