just use `return buffer.readSlice(length);`