Does python have a class with functions similar to Java ByteBuffer? ByteBuffer in Java is a class that stores a buffer. It has several attributes: mark, position, capacity, and limit. Mark marks a certain position in the buffer when it is read. Position is the current reading position. Capacity is the buffer's capacity. Length, limit is the upper limit of reading and writing. Does python have a class with such function?
memoryview