RzBuffer# class RzBuffer# property Oxff_priv: int# property fd: int# property methods: RzBufferMethods# property priv: Any# property readonly: bool# property refctr: int# property whole_buf: int# append_bytes(buf: int, len: int) → bool# Calls function rz_buf_append_bytes (defined in buf.c) Append an array of bytes to the buffer. Parameters: dst – the destination buffer with write permission src – the source buffer length – … Returns: Return the status of the operation. insert_bytes(addr: int, buf: int, len: int) → int# Calls function rz_buf_insert_bytes (defined in buf.c) Insert an array of bytes in the buffer. Parameters: b – A buffer with write permission. addr – … buf – … length – … Returns: Return the number of bytes written. … prepend_bytes(buf: int, len: int) → bool# Calls function rz_buf_prepend_bytes (defined in buf.c) Prepend an array of bytes to the buffer. Parameters: b – A buffer with write permission. buf – … length – … Returns: Return the status of the operation. … read(buf: int, len: int) → int# Calls function rz_buf_read (defined in buf.c) Read len bytes of the buffer at the cursor. Parameters: b – … buf – … len – … Returns: Return the number of bytes read. … read_at(addr: int, buf: int, len: int) → int# Calls function rz_buf_read_at (defined in buf.c) Read len bytes of the buffer at the specified address. Parameters: b – … addr – … buf – … len – … Returns: Return the number of bytes read. … seek(addr: int, whence: int) → int# Calls function rz_buf_seek (defined in buf.c) Modify the current cursor position in the buffer. Parameters: b – … addr – … whence – The relative position of the address. Returns: Return the new cursor position … set_bytes(buf: int, len: int) → bool# Calls function rz_buf_set_bytes (defined in buf.c) Replace the content of the buffer with the bytes array. Parameters: b – A buffer with write permission. buf – … length – … Returns: Return the status of the operation. … write(buf: int, len: int) → int# Calls function rz_buf_write (defined in buf.c) Write len bytes of the buffer at the cursor. Parameters: b – A buffer with write permission. buf – … len – … Returns: Return the number of bytes written. … write_at(addr: int, buf: int, len: int) → int# Calls function rz_buf_write_at (defined in buf.c) Write len bytes of the buffer at the specified address. Parameters: b – A buffer with write permission. addr – … buf – … len – … Returns: Return the number of bytes written. …