|
-
Apr 13th, 2010, 05:19 PM
#1
Thread Starter
Frenzied Member
[RESOLVED] Des File.ReadAllBytes preserve a files structure
Hi,
Im currently working with MP4 files. The methods im working on open the file and begin to traverse the "atom" tree contained within which is essentially a structure that I need data from. This means I need to keep the file in use while I traverse the tree, would it be better to use File.ReadAllBytes and traverse and Array instead?
-
Apr 13th, 2010, 08:07 PM
#2
Re: Des File.ReadAllBytes preserve a files structure
If locking the file while you traverse it is an issue then you might be better to use an in-memory array, as you suggest. It might also be faster, depending on exactly what you're doing. You might also consider copying the data to a MemoryStream if working with a stream is easier.
-
Apr 13th, 2010, 08:10 PM
#3
Thread Starter
Frenzied Member
Re: Des File.ReadAllBytes preserve a files structure
Cheers Jmc,
Thread Resolved!
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
|