Package com.facebook.soloader
Class ElfFileChannel
java.lang.Object
com.facebook.soloader.ElfFileChannel
- All Implemented Interfaces:
ElfByteChannel,Closeable,AutoCloseable,ByteChannel,Channel,ReadableByteChannel,WritableByteChannel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanisOpen()voidlongposition()position(long newPosition) intread(ByteBuffer dst) intread(ByteBuffer dst, long position) longsize()truncate(long size) intwrite(ByteBuffer src)
-
Constructor Details
-
ElfFileChannel
- Throws:
IOException
-
-
Method Details
-
openChannel
- Throws:
IOException
-
position
- Specified by:
positionin interfaceElfByteChannel- Throws:
IOException
-
position
- Specified by:
positionin interfaceElfByteChannel- Throws:
IOException
-
read
- Specified by:
readin interfaceElfByteChannel- Specified by:
readin interfaceReadableByteChannel- Throws:
IOException
-
read
- Specified by:
readin interfaceElfByteChannel- Throws:
IOException
-
size
- Specified by:
sizein interfaceElfByteChannel- Throws:
IOException
-
truncate
- Specified by:
truncatein interfaceElfByteChannel- Throws:
IOException
-
write
- Specified by:
writein interfaceElfByteChannel- Specified by:
writein interfaceWritableByteChannel- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Throws:
IOException
-
isOpen
public boolean isOpen()
-