All Downloads are FREE. Search and download functionalities are using the official Maven repository.

zmq.io.coder.IEncoder Maven / Gradle / Ivy

There is a newer version: 0.6.0
Show newest version
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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy