diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-11-10 12:35:48 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-11-10 12:35:48 -0300 |
commit | 3b57e37e4821ddce4756428956b7e9f4969efa4c (patch) | |
tree | a0bd071341349d964d98f55e7c2be8860792ff1f /manual | |
parent | 024f9064f1b43758eb36aba52547edc0312bf4ba (diff) | |
download | lua-3b57e37e4821ddce4756428956b7e9f4969efa4c.tar.gz lua-3b57e37e4821ddce4756428956b7e9f4969efa4c.tar.bz2 lua-3b57e37e4821ddce4756428956b7e9f4969efa4c.zip |
Fixed buffers save long strings as external.
Diffstat (limited to 'manual')
-rw-r--r-- | manual/manual.of | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/manual/manual.of b/manual/manual.of index 9d6a7fd9..9ca28aee 100644 --- a/manual/manual.of +++ b/manual/manual.of | |||
@@ -3651,8 +3651,10 @@ Moreover, it may have a @Char{B} instead of a @Char{b}, | |||
3651 | meaning a @emphx{fixed buffer} with the binary dump. | 3651 | meaning a @emphx{fixed buffer} with the binary dump. |
3652 | 3652 | ||
3653 | A fixed buffer means that the address returned by the reader function | 3653 | A fixed buffer means that the address returned by the reader function |
3654 | should contain the chunk until everything created by the chunk has | 3654 | will contain the chunk until everything created by the chunk has |
3655 | been collected. | 3655 | been collected; |
3656 | therefore, Lua can avoid copying to internal structures | ||
3657 | some parts of the chunk. | ||
3656 | (In general, a fixed buffer would keep the chunk | 3658 | (In general, a fixed buffer would keep the chunk |
3657 | as its contents until the end of the program, | 3659 | as its contents until the end of the program, |
3658 | for instance with the chunk in ROM.) | 3660 | for instance with the chunk in ROM.) |