return(data);
}
- public static Map<ByteBuffer, ByteBuffer> readhead(ReadableByteChannel sk) throws IOException {
+ public static Map<ByteBuffer, ByteBuffer> splithead(ByteBuffer ns) {
Map<ByteBuffer, ByteBuffer> ret = new HashMap<>();
- ByteBuffer ns = readns(sk);
ByteBuffer k = null;
for(int i = 0, p = 0; i < ns.limit(); i++) {
if(ns.get(i) == 0) {
}
return(ret);
}
+
+ public static Map<ByteBuffer, ByteBuffer> readhead(ReadableByteChannel sk) throws IOException {
+ return(splithead(readns(sk)));
+ }
}