Package com.facebook.soloader
Interface ElfByteChannel
-
- All Superinterfaces:
java.lang.AutoCloseable,java.nio.channels.ByteChannel,java.nio.channels.Channel,java.io.Closeable,java.nio.channels.ReadableByteChannel,java.nio.channels.WritableByteChannel
- All Known Implementing Classes:
ElfFileChannel,ElfZipFileChannel
public interface ElfByteChannel extends java.nio.channels.ByteChannel
-
-
Method Summary
Modifier and Type Method Description longposition()ElfByteChannelposition(long newPosition)intread(java.nio.ByteBuffer dst)intread(java.nio.ByteBuffer dst, long position)longsize()ElfByteChanneltruncate(long size)intwrite(java.nio.ByteBuffer src)
-
-
-
Method Detail
-
position
long position() throws java.io.IOException- Throws:
java.io.IOException
-
position
ElfByteChannel position(long newPosition) throws java.io.IOException
- Throws:
java.io.IOException
-
read
int read(java.nio.ByteBuffer dst) throws java.io.IOException
- Specified by:
readin interfacejava.nio.channels.ReadableByteChannel- Throws:
java.io.IOException
-
read
int read(java.nio.ByteBuffer dst, long position) throws java.io.IOException- Throws:
java.io.IOException
-
size
long size() throws java.io.IOException
- Throws:
java.io.IOException
-
truncate
ElfByteChannel truncate(long size) throws java.io.IOException
- Throws:
java.io.IOException
-
write
int write(java.nio.ByteBuffer src) throws java.io.IOException
- Specified by:
writein interfacejava.nio.channels.WritableByteChannel- Throws:
java.io.IOException
-
-