Re: Stupid Byte[] question
No, there's not. At least, not using verifyable (not 'unsafe') .NET code - which is what you should be aiming for.
The way the framework usually does this is to pass an offset & length into any method which accepts a byte [] array.
e.g.
Code:
void MyMethod(byte [] bytes, int offset, int count)
{
}
Darwen.
Re: Stupid Byte[] question
Thanks, that's how I've implemented the code at the moment (offset & size params). I just wanted to make sure I wasn't missing an easy Byte function that provided the functionality I required.
Thanks again!