ByteBufferInputStream bb = new ByteBufferInputStream(buf, offset, length);
return decodeMessage(bb, peer, length + overhead, true, false, false);
}
public static Message decodeMessageLax(byte[] buf, PeerContext peer, int overhead) {
ByteBufferInputStream bb = new ByteBufferInputStream(buf);
return decodeMessage(bb, peer, buf.length + overhead, true, false, true);
}