Home
last modified time | relevance | path

Searched refs:devOffset (Results 1 – 3 of 3) sorted by relevance

/tools/external/fat32lib/src/main/java/de/waldheinz/fs/util/
DRamDisk.java116 public void read(long devOffset, ByteBuffer dest) throws IOException { in read() argument
119 if (devOffset > getSize()){ in read()
121 sb.append("read at ").append(devOffset); in read()
127 data.limit((int) (devOffset + dest.remaining())); in read()
128 data.position((int) devOffset); in read()
134 public void write(long devOffset, ByteBuffer src) throws IOException { in write() argument
137 if (devOffset + src.remaining() > getSize()) throw new in write()
139 "offset=" + devOffset + in write()
143 data.limit((int) (devOffset + src.remaining())); in write()
144 data.position((int) devOffset); in write()
DFileDisk.java110 public void read(long devOffset, ByteBuffer dest) throws IOException { in read() argument
114 if ((devOffset + toRead) > getSize()) throw new IOException( in read()
118 final int read = fc.read(dest, devOffset); in read()
121 devOffset += read; in read()
126 public void write(long devOffset, ByteBuffer src) throws IOException { in write() argument
133 if ((devOffset + toWrite) > getSize()) throw new IOException( in write()
137 final int written = fc.write(src, devOffset); in write()
140 devOffset += written; in write()
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/
DBlockDevice.java48 public abstract void read(long devOffset, ByteBuffer dest) in read() argument
62 public abstract void write(long devOffset, ByteBuffer src) in write() argument