Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static System.Byte[] CombineArrays(System.Byte[][] In)
- {
- System.Int32 Length = 0;
- for (System.Int32 i = 0; i < In.Length; i++)
- {
- Length += In[i].Length;
- }
- System.Byte[] Out = new System.Byte[Length];
- System.Int32 Offset = 0;
- for (System.Int32 i = 0; i < In.Length; i++)
- {
- In[i].CopyTo(Out, Offset);
- Offset += In[i].Length;
- }
- return Out;
- }
Advertisement
Add Comment
Please, Sign In to add comment