aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2021-07-22 18:22:01 +0200
committerTristan Gingold <tgingold@free.fr>2021-07-22 18:22:01 +0200
commit9d94165c115ba44012f1bd9f488d3d3475c937ab (patch)
tree6c8125f22e21dc660c7486a3e1d84865bb380c65 /pyGHDL
parent7922cf5cd5cff207a4dd5992f498cea61a8d9039 (diff)
downloadghdl-9d94165c115ba44012f1bd9f488d3d3475c937ab.tar.gz
ghdl-9d94165c115ba44012f1bd9f488d3d3475c937ab.tar.bz2
ghdl-9d94165c115ba44012f1bd9f488d3d3475c937ab.zip
files_map.py: Add get_buffer_length
Diffstat (limited to 'pyGHDL')
-rw-r--r--pyGHDL/libghdl/files_map.py9
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")