If you traverse a file containing CIDs, you might want to keep track of your current position. Currently read_bytes() only returns the new CID. As varints are involved, you cannot tell by how many bytes the reader was advanced. Hence I propose extending read_bytes() to also return the number of byte read.
If you traverse a file containing CIDs, you might want to keep track of your current position. Currently
read_bytes()only returns the new CID. As varints are involved, you cannot tell by how many bytes the reader was advanced. Hence I propose extendingread_bytes()to also return the number of byte read.