Update libfile.md

This commit is contained in:
Xertis 2025-10-01 19:05:25 +03:00 committed by GitHub
parent fd8d2c22e5
commit ab60e7b835
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -43,6 +43,18 @@ file.write_bytes(путь: str, data: array of integers)
Записывает массив байт в файл (с перезаписью)
```python
file.gzip_compress(data: array of integers, [опционально] usetable) -> array of integers
```
Сжимает массив байт алгоритмом gzip. При значении usetable = false возвращает Bytearray вместо table.
```python
file.gzip_decompress(data: array of integers, [опционально] usetable) -> array of integers
```
Разжимает массив байт, который был сжат алгоритмом gzip. При значении usetable = false возвращает Bytearray вместо table.
```python
file.length(путь: str) -> int
```
@ -205,4 +217,4 @@ file.open_named_pipe(имя: str, режим: str) -> io_stream
`/tmp/` или `\\\\.\\pipe\\` добавлять не нужно - движок делает это автоматически.
Доступные режимы такие же, как и в `file.open`, за исключением `+`
Доступные режимы такие же, как и в `file.open`, за исключением `+`