Documentation staticRead maximum file size limits (#13485)

This commit is contained in:
Juan Carlos 2020-02-26 06:01:23 -03:00 • committed by GitHub
commit 94b0d6bb63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2525,6 +2525,9 @@ proc staticRead*(filename: string): string {.magic: "Slurp".}
## Compile-time `readFile <io.html#readFile,string>`_ proc for easy
## `resource`:idx: embedding:
##
## The maximum file size limit that ``staticRead`` and ``slurp`` can read is
## near or equal to the *free* memory of the device you are using to compile.
##
## .. code-block:: Nim
## const myResource = staticRead"mydatafile.bin"
##