Package com.usatiuk.dhfsfuse
Class JnrPtrByteOutput
java.lang.Object
com.google.protobuf.ByteOutput
com.usatiuk.dhfsfuse.JnrPtrByteOutput
public class JnrPtrByteOutput
extends com.google.protobuf.ByteOutput
JnrPtrByteOutput is a ByteOutput implementation that writes to a `jnr.ffi.Pointer`.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidwrite(byte value) voidwrite(byte[] value, int offset, int length) voidwrite(ByteBuffer value) voidwriteLazy(byte[] value, int offset, int length) voidwriteLazy(ByteBuffer value)
-
Constructor Details
-
JnrPtrByteOutput
public JnrPtrByteOutput(jnr.ffi.Pointer backing, long size)
-
-
Method Details
-
write
public void write(byte value) - Specified by:
writein classcom.google.protobuf.ByteOutput
-
write
public void write(byte[] value, int offset, int length) - Specified by:
writein classcom.google.protobuf.ByteOutput
-
writeLazy
public void writeLazy(byte[] value, int offset, int length) - Specified by:
writeLazyin classcom.google.protobuf.ByteOutput
-
write
- Specified by:
writein classcom.google.protobuf.ByteOutput
-
writeLazy
- Specified by:
writeLazyin classcom.google.protobuf.ByteOutput
-