readinto#

barecat.BarecatReadOnlyFileObject.readinto(buffer)[source]#

Read bytes into a buffer from the section, starting from the current position.

Will read up to the length of the buffer or until the end of the section.

Parameters:

buffer (Union[bytearray, memoryview]) – destination buffer to read into

Returns:

Number of bytes read into the buffer.

Return type:

int