@@ -340,23 +340,6 @@ public <T> T read(byte[] bytes, T v) throws IOException {
340340 return read (bytes , v , tmpl );
341341 }
342342
343- /**
344- * Deserializes byte array to object.
345- *
346- * @since 0.6.8
347- * @param bytes
348- * input byte array
349- * @param v
350- * @return
351- * @throws IOException
352- */
353- public <T > T read (byte [] bytes , int off , int len , Class <T > c ) throws IOException {
354- @ SuppressWarnings ("unchecked" )
355- Template <T > tmpl = registry .lookup (c );
356- BufferUnpacker u = createBufferUnpacker (bytes , off , len );
357- return (T ) tmpl .read (u , null );
358- }
359-
360343 /**
361344 * Deserializes byte array to object according to template.
362345 *
@@ -405,6 +388,23 @@ public <T> T read(byte[] bytes, T v, Template<T> tmpl) throws IOException {
405388 return (T ) tmpl .read (u , v );
406389 }
407390
391+ /**
392+ * Deserializes byte array to object.
393+ *
394+ * @since 0.6.8
395+ * @param bytes
396+ * input byte array
397+ * @param v
398+ * @return
399+ * @throws IOException
400+ */
401+ public <T > T read (byte [] bytes , int off , int len , Class <T > c ) throws IOException {
402+ @ SuppressWarnings ("unchecked" )
403+ Template <T > tmpl = registry .lookup (c );
404+ BufferUnpacker u = createBufferUnpacker (bytes , off , len );
405+ return (T ) tmpl .read (u , null );
406+ }
407+
408408 /**
409409 * Deserializes buffer to object.
410410 *
0 commit comments