public static <T> void mergeFrom(byte[] data, int offset, int length, T message,
Schema<T> schema, boolean numeric) throws IOException
{
final IOContext context = new IOContext(DEFAULT_SMILE_FACTORY._getBufferRecycler(),
data, false);
final SmileParser parser = newSmileParser(null, data, offset, offset+length, false,
context);
//final SmileParser parser = DEFAULT_SMILE_FACTORY.createJsonParser(data, offset, length);
try
{
JsonIOUtil.mergeFrom(parser, message, schema, numeric);
}
finally
{
parser.close();
}
}