Copying a long array into a byte array and back 
Author Message
 Copying a long array into a byte array and back

How can I copy an array of long (say 10) into array of byte (40) ?
Can I use MoveMemory or CopyMemory and how ? Thanks



Fri, 16 Jun 2000 03:00:00 GMT  
 Copying a long array into a byte array and back

Xonix,

Quote:
>How can I copy an array of long (say 10) into array of byte (40) ?
>Can I use MoveMemory or CopyMemory and how ? Thanks

Yes, you can. CopyMemory is slightly faster.

You need to pass the first item in the array as the destination and source
arguments. Both must be passed ByRef.

If you get stuck, post what you have so far here and I'll see if I can help
further.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com



Fri, 16 Jun 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Copying a long array into a byte array and back

2. Copying a long array into a byte array and back

3. Copying a long array into a byte array and back

4. Copying a long array into a byte array and back

5. Copy bytes from an Integer to a location of bytes array

6. Copying Nested Arrays w/Array.Copy

7. Convert Strings to Byte arrays and back

8. Convert user defined type or variant to byte array (and back)

9. Variant to Byte Array, and back

10. Variant to Byte Array, and back

11. Double to Byte Array and Back

12. Converting integer (or long) data type to array of bytes

 

 
Powered by phpBB® Forum Software