mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 12:31:51 +00:00
fix: missing Bytearray option in file.read_bytes
This commit is contained in:
parent
c8c8b2a023
commit
d9d4d2b305
3 changed files with 14 additions and 10 deletions
|
|
@ -20,10 +20,10 @@ file.read(path: str) -> str
|
|||
Read whole text file.
|
||||
|
||||
```python
|
||||
file.read_bytes(path: str) -> array of integers
|
||||
file.read_bytes(path: str, [optional] usetable) -> array of integers
|
||||
```
|
||||
|
||||
Read file into bytes array.
|
||||
Read file into bytes array. If usetable = false , returns Bytearray instead of table.
|
||||
|
||||
```lua
|
||||
file.is_writeable(path: str) -> bool
|
||||
|
|
|
|||
|
|
@ -20,10 +20,10 @@ file.read(путь: str) -> str
|
|||
Читает весь текстовый файл и возвращает в виде строки
|
||||
|
||||
```python
|
||||
file.read_bytes(путь: str) -> array of integers
|
||||
file.read_bytes(путь: str, [опционально] usetable) -> array of integers
|
||||
```
|
||||
|
||||
Читает файл в массив байт.
|
||||
Читает файл в массив байт. При значении usetable = false возвращает Bytearray вместо table.
|
||||
|
||||
```lua
|
||||
file.is_writeable(путь: str) -> bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue