content
protected byte[] content
EmuFileContents<byte[]>Note that currently, the total contents cannot exceed a Java array, so the file must remain less than 2GB in size.
protected byte[]protected static final intlong read(long offset, byte[] buf, long fileSize)int read(long offset, byte[] buf, long fileSize)EmuFileContentsread in interface EmuFileContents<byte[]>offset - the offset in the file to readbuf - the destination buffer, whose size must be knownfileSize - the size of the filelong write(long offset, byte[] buf, long curSize)int write(long offset, byte[] buf, long curSize)EmuFileContentswrite in interface EmuFileContents<byte[]>offset - the offset in the file to writebuf - the source buffer, whose size must be knowncurSize - the current size of the fileEmuFileContentsNote that the file's size will be set to 0, so actual erasure of the contents may not be necessary, but if the contents are expensive to store, they ought to be disposed.
truncate in interface EmuFileContents<byte[]>