CBFS Filter 2020 Python Edition

Questions / Feedback?

add_bytes_to_write_buffer Method

Reserves extra space in the file data buffers used in file read/write events.

Syntax

def add_bytes_to_write_buffer(extra_bytes: int) -> bool: ...

Remarks

Applications that plan to add additional data when files are being read and/or written should call this method to specify how much extra space to reserve in the file data buffers used in the on_before_read_file, on_after_read_file, on_before_write_file, and on_after_write_file events. If successful, this method returns True; otherwise, it returns False.

The ExtraBytes parameter specifies how many bytes to reserve. Note that the value passed for this parameter must be a multiple of 512.

Note: This method cannot be called when active is True.

Copyright (c) 2022 Callback Technologies, Inc. - All rights reserved.
CBFS Filter 2020 Python Edition - Version 20.0 [Build 8317]