Re: How to convert int to byte[]

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Jon Skeet [C# MVP] (skeet_at_pobox.com)
Date: 11/24/04


Date: Wed, 24 Nov 2004 06:57:23 -0000

Shankar <Shankar@discussions.microsoft.com> wrote:
> How can we convert the integer values to byte arrays using C#.NET

Depending on exactly what you want, BitConverter is usually the way to
go.

-- 
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too


Relevant Pages

  • Re: Congrats to jquery
    ... returned the values for objects (not including arrays) in a consistent ... but had the specs read as these people ... The point is that it would be useful for a number of reasons. ... Depending on it because it was the observed behavior even though it ...
    (comp.lang.javascript)
  • Re: Controlling pci bus utilization
    ... arrays, right? ... Solaris 10 is considerably more efficient doing IO than Solaris 9, ... This may or may not help your problem depending on it's source. ... Solaris 10 is also much more accurate doing process accounting; ...
    (comp.unix.solaris)
  • Re: Delphi - does catastrophe loom ? (long)
    ... >Mat Ballard wrote: ... >> you would if you worked with Matrices 8^) or Arrays. ... >Depending on how important it is to use your code everywhere, ... Anders Isaksson, Sweden ...
    (borland.public.delphi.non-technical)
  • Re: Null object = Zero
    ... but my arrays have 1001 elements each .. ... Still not impossible to type 2000+ characters. ... quickest way, depending on the relative communication, parsing and ...
    (comp.lang.postscript)
  • Re: FC Challenge proposal
    ... Depending on the size of your arrays, a solution could to change the challenge ... generate conversion code dynamically, and maybe, even apply some extra math ... (clamping, scaling, offsetting, that kind of stuff). ...
    (borland.public.delphi.language.basm)