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 TypeMethodDescriptionvoid
write
(byte value) void
write
(byte[] value, int offset, int length) void
write
(ByteBuffer value) void
writeLazy
(byte[] value, int offset, int length) void
writeLazy
(ByteBuffer value)
-
Constructor Details
-
JnrPtrByteOutput
public JnrPtrByteOutput(jnr.ffi.Pointer backing, long size)
-
-
Method Details
-
write
public void write(byte value) - Specified by:
write
in classcom.google.protobuf.ByteOutput
-
write
public void write(byte[] value, int offset, int length) - Specified by:
write
in classcom.google.protobuf.ByteOutput
-
writeLazy
public void writeLazy(byte[] value, int offset, int length) - Specified by:
writeLazy
in classcom.google.protobuf.ByteOutput
-
write
- Specified by:
write
in classcom.google.protobuf.ByteOutput
-
writeLazy
- Specified by:
writeLazy
in classcom.google.protobuf.ByteOutput
-