
zmq.io.coder.IEncoder Maven / Gradle / Ivy
package zmq.io.coder;
import java.nio.ByteBuffer;
import zmq.Msg;
import zmq.util.ValueReference;
public interface IEncoder
{
// Load a new message into encoder.
void loadMsg(Msg msg);
// The function returns a batch of binary data. The data
// are filled to a supplied buffer. If no buffer is supplied (data_
// points to NULL) decoder object will provide buffer of its own.
int encode(ValueReference data, int size);
void destroy();
// called when stream engine finished encoding all messages and is ready to
// send data to network layer
void encoded();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy