diff options
Diffstat (limited to 'pyGHDL')
-rw-r--r-- | pyGHDL/libghdl/files_map.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pyGHDL/libghdl/files_map.py b/pyGHDL/libghdl/files_map.py index 551f13d64..b20641866 100644 --- a/pyGHDL/libghdl/files_map.py +++ b/pyGHDL/libghdl/files_map.py @@ -219,6 +219,15 @@ def Set_File_Length(File: SourceFileEntry, Length: int) -> None: """ return 0 +@export +@BindToLibGHDL("files_map__get_buffer_length") +def Get_Buffer_Length(File: SourceFileEntry) -> int: + """ + Get the length of the buffer, including the gap and the two EOT. + + :param File: Source file + :return: Type: ``Source_Ptr`` + """ @export @BindToLibGHDL("files_map__get_buffer_length") |