473,414 Members | 1,781 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Concatenating two arrays of byte together

Is there any built-in method or mechanism for concatenating two arrays of
byte together?

I haven't come across anything to do this, and was just checking before I
implement some code.

Richard Rosenheim
Nov 21 '05 #1
4 2000

Have you looked at the Array.CopyTo shared method?

Robby
"Richard L Rosenheim" <ri*****@rlr.com> wrote in message
news:e$**************@TK2MSFTNGP14.phx.gbl...
Is there any built-in method or mechanism for concatenating two arrays of
byte together?

I haven't come across anything to do this, and was just checking before I
implement some code.

Richard Rosenheim

Nov 21 '05 #2
After reading your reply, I doubled checked the documentation. I
misunderstood the documentation. I was thinking it copied the array
specified starting at the index specified -- not that it copied the array to
the index specified.

Thanks for the reply,

Richard

"Robby" <ed****@not.my.email.com> wrote in message
news:%2******************@TK2MSFTNGP11.phx.gbl...

Have you looked at the Array.CopyTo shared method?

Robby
"Richard L Rosenheim" <ri*****@rlr.com> wrote in message
news:e$**************@TK2MSFTNGP14.phx.gbl...
Is there any built-in method or mechanism for concatenating two arrays of byte together?

I haven't come across anything to do this, and was just checking before I implement some code.

Richard Rosenheim


Nov 21 '05 #3
Richard,
There is both Array.CopyTo & Array.Copy. It sounds like you may have been
looking at the one thinking of the other...

Array.CopyTo will copy the entire current array to another array at the
specified index. CopyTo is an instance method.

Array.Copy will copy all or part of one array to part of another array .
Copy is a Shared method.
Hope this helps
Jay
"Richard L Rosenheim" <ri*****@rlr.com> wrote in message
news:u4**************@TK2MSFTNGP12.phx.gbl...
After reading your reply, I doubled checked the documentation. I
misunderstood the documentation. I was thinking it copied the array
specified starting at the index specified -- not that it copied the array
to
the index specified.

Thanks for the reply,

Richard

"Robby" <ed****@not.my.email.com> wrote in message
news:%2******************@TK2MSFTNGP11.phx.gbl...

Have you looked at the Array.CopyTo shared method?

Robby
"Richard L Rosenheim" <ri*****@rlr.com> wrote in message
news:e$**************@TK2MSFTNGP14.phx.gbl...
> Is there any built-in method or mechanism for concatenating two arrays of > byte together?
>
> I haven't come across anything to do this, and was just checking before I > implement some code.
>
> Richard Rosenheim
>
>



Nov 21 '05 #4
Jay, I always read your replies and find your answers to be excellent. From
your answer to this question, I figured out what is meant by "Instance
method" and "Shared Method". Thanks for all the insight you've given me by
your answers to many questions.

"Jay B. Harlow [MVP - Outlook]" wrote:
Richard,
There is both Array.CopyTo & Array.Copy. It sounds like you may have been
looking at the one thinking of the other...

Array.CopyTo will copy the entire current array to another array at the
specified index. CopyTo is an instance method.

Array.Copy will copy all or part of one array to part of another array .
Copy is a Shared method.
Hope this helps
Jay
"Richard L Rosenheim" <ri*****@rlr.com> wrote in message
news:u4**************@TK2MSFTNGP12.phx.gbl...
After reading your reply, I doubled checked the documentation. I
misunderstood the documentation. I was thinking it copied the array
specified starting at the index specified -- not that it copied the array
to
the index specified.

Thanks for the reply,

Richard

"Robby" <ed****@not.my.email.com> wrote in message
news:%2******************@TK2MSFTNGP11.phx.gbl...

Have you looked at the Array.CopyTo shared method?

Robby
"Richard L Rosenheim" <ri*****@rlr.com> wrote in message
news:e$**************@TK2MSFTNGP14.phx.gbl...
> Is there any built-in method or mechanism for concatenating two arrays

of
> byte together?
>
> I haven't come across anything to do this, and was just checking before

I
> implement some code.
>
> Richard Rosenheim
>
>



Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: nwheavyw8 | last post by:
I am currently trying to write a simple PHP script that will split an uploading file up into 500kb "chunks", then read and concatenate them back together when accessed for download. I can't seem...
4
by: Juan | last post by:
Does any one know if there are reported bugs when concatenating strings? When debugging each variable has the correct value but when I try to concatenate them some values are missing (I canīt see...
7
by: War Eagle | last post by:
I have two byte arrays and a char (the letter S) I was to concatenate to one byte array. Here is what code I have. I basically want to send this in a one buffer (byte array?) through a socket. ...
5
by: JezB | last post by:
What's the easiest way to concatenate arrays ? For example, I want a list of files that match one of 3 search patterns, so I need something like DirectoryInfo ld = new DirectoryInfo(searchDir);...
7
by: Joseph Lee | last post by:
Hi All, I am having problem when i am using hashtable to keep an array of bytes value as keys. Take a look at the code snippet below --------------------------------------------------- ...
8
by: frekster | last post by:
Hi. I used to be able to do this easily in vb 6 via looping and preserving the source array data/size etc. How can I do this in vb.net? I've been trying for a while now and this should be...
4
by: FB's .NET Dev PC | last post by:
Interesting note, the code below as is will attempt to cast what is clearly indicated as a string into a double. This is becuase the use of + as a concatenation operator. The error message...
2
by: chris | last post by:
I have a few byte arrays that I would like to combine into one array (order needs to be kept). What would be the most efficient way to do this? Thanks for your time, Chris
7
by: daniel | last post by:
Hello , I always had the feeling that is better to have char arrays with the size equal to a power of two. For example: char a_str; // feels ok char b_str; //feels not ok.
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.