[mono-android] Random Access on Assets
Jonathan Pryor
jpryor at novell.com
Fri Mar 18 19:24:46 EDT 2011
On Mar 18, 2011, at 5:33 PM, Aaron Knabb wrote:
> Has anyone tried to access an asset in Access.Random mode? I have a large file that I would like to call .Seek() on. The file is too large to completely load into memory, so I would like to pull a small part out.
I believe what you want and Access.Random mean completely different things; you'd want Access.Streaming.
That said, Android doesn't support Streaming very well either:
http://lists.ximian.com/mailman/private/monodroid/2011-February/003289.html
> I can get a stream to the Asset using Context.Assets.Open(), but I can't seem to sucessfully load it in Random mode. I've read things online about specifying certain assets as being non-compressed, but I don't quite understand how to do that.
Yes, this is probably what you want:
http://lists.ximian.com/mailman/private/monodroid/2011-February/003290.html
- Jon
More information about the Monodroid
mailing list