|
-
Jan 22nd, 2013, 12:33 PM
#1
Thread Starter
Addicted Member
[RESOLVED] Creating and using buffers
Hey,
I have never used buffers and have been doing research on them for most of this morning. here is what I currently need to do:
Take the data coming in through the usb and put it into a temporary buffer, after analyzing the data I then have to transfer it to the main buffer.
I have completed everything to do with the analyzing part just need to figure out the buffer part. I am looking at the buffer class -->http://msdn.microsoft.com/en-us/libr...code-snippet-2
But the example doesnt seem to help me. If there is already a buffer within the program how to I create a new one?
EDIT: Did some more research, if someone could verify if my understanding is correct?
Buffer.BlockCopy()
With BlockCopy I am able to specify where the data is coming in and assign the data to an array(Which in this case would be my 'temp buffer')?
I can then analyze the array and copy it to the 'main buffer'?
Last edited by Crzyrio; Jan 22nd, 2013 at 12:44 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|