comparison src/main/java/org/msgpack/unpacker/MessagePackUnpacker.java @ 6:8d782f988d92

refactor
author sugi
date Fri, 09 Jan 2015 15:14:00 +0900
parents efe621b1dba9
children e7e55c455e39
comparison
equal deleted inserted replaced
5:efe621b1dba9 6:8d782f988d92
682 public void resetReadByteCount() { 682 public void resetReadByteCount() {
683 in.resetReadByteCount(); 683 in.resetReadByteCount();
684 } 684 }
685 685
686 public byte[] getSerializedByteArray(int len) throws IOException { 686 public byte[] getSerializedByteArray(int len) throws IOException {
687 return ((StreamInput)in).getRawByteArray(len); 687 byte[] b = new byte[len];
688 in.read(b, 0, b.length);
689 return b;
688 } 690 }
689 } 691 }