eu.toolchain.serializer.BytesSerialWriter Maven / Gradle / Ivy
package eu.toolchain.serializer;
import java.nio.ByteBuffer;
public interface BytesSerialWriter extends SerialWriter {
/**
* Copy the underlying buffer, and provide a byte array.
*
* @return A byte array copy of the underlying buffer.
*/
byte[] toByteArray();
/**
* Copy the underlying buffer, and provide a {@link ByteBuffer}.
*
* @return A {@link ByteBuffer} copy of the underlying buffer.
*/
ByteBuffer toByteBuffer();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy