|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to convert integer(long) to byte array?Hi All!
In VB6 it was relatively simple with API-function "CopyMemory". Anybody know another possibility to make it? Thanks, Alexander Alexander Levchenko wrote:
> Hi All! It's even simpler now, and type-safe to boot! BitConverter.GetBytes> > In VB6 it was relatively simple with API-function "CopyMemory". > Anybody know another possibility to make it? takes anything and returns a Byte(). -- Larry Lard Replies to group please Simpler it is not. Type-safe it is not. (Anything that returns a Byte
regardless of the source is not Type anything). At least it works. A few more simplifications like this, and even less people will see programming as fun. -- Show quoteHide quoteSignatore "Larry Lard" wrote: > > Alexander Levchenko wrote: > > Hi All! > > > > In VB6 it was relatively simple with API-function "CopyMemory". > > Anybody know another possibility to make it? > > It's even simpler now, and type-safe to boot! BitConverter.GetBytes > takes anything and returns a Byte(). > > -- > Larry Lard > Replies to group please > > |
|||||||||||||||||||||||