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

rpc.turbo.serialization.JsonMapper Maven / Gradle / Ivy

package rpc.turbo.serialization;

import java.io.IOException;

import io.netty.buffer.ByteBuf;

public interface JsonMapper {

	/**
	 * 读取对象
	 * 
	 * @param buffer
	 * @param type
	 * @return
	 */
	 T read(ByteBuf buffer, Class type) throws IOException;

	/**
	 * 写入对象
	 * 
	 * @param buffer
	 * @param value
	 */
	void write(ByteBuf buffer, Object value) throws IOException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy