-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
document filesystem/handle + remove valve header on files that aren't…
… valves
- Loading branch information
Showing
195 changed files
with
2,126 additions
and
1,321 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
template: lua-class-function.html | ||
title: Read | ||
icon: lua-shared | ||
tags: | ||
- lua | ||
- shared | ||
- needs-verification | ||
- needs-example | ||
lua: | ||
library: FileHandle | ||
function: Read | ||
realm: shared | ||
description: "Read from a file." | ||
|
||
arguments: | ||
- name: "size" | ||
type: number | ||
default: "GET_FILE_SIZE" | ||
returns: | ||
- type: integer | ||
description: "The number of bytes read." | ||
- type: string | ||
description: "The data read." | ||
--- | ||
|
||
<div class="lua__search__keywords"> | ||
FileHandle:Read – Read from a file. | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
template: lua-class-function.html | ||
title: Size | ||
icon: lua-shared | ||
tags: | ||
- lua | ||
- shared | ||
- needs-verification | ||
- needs-example | ||
lua: | ||
library: FileHandle | ||
function: Size | ||
realm: shared | ||
description: "Get the size of a file." | ||
|
||
|
||
returns: | ||
- type: integer | ||
description: "The size of the file." | ||
--- | ||
|
||
<div class="lua__search__keywords"> | ||
FileHandle:Size – Get the size of a file. | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
template: lua-class-function.html | ||
title: Write | ||
icon: lua-shared | ||
tags: | ||
- lua | ||
- shared | ||
- needs-verification | ||
- needs-example | ||
lua: | ||
library: FileHandle | ||
function: Write | ||
realm: shared | ||
description: "Write to a file." | ||
|
||
arguments: | ||
- name: "file" | ||
type: FileHandle | ||
returns: | ||
- type: integer | ||
description: "The number of bytes written." | ||
--- | ||
|
||
<div class="lua__search__keywords"> | ||
FileHandle:Write – Write to a file. | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
template: lua-class-function.html | ||
title: __eq | ||
icon: lua-shared | ||
tags: | ||
- lua | ||
- shared | ||
- needs-verification | ||
- needs-example | ||
lua: | ||
library: FileHandle | ||
function: __eq | ||
realm: shared | ||
description: "Check if two file handles are equal." | ||
|
||
arguments: | ||
- name: "file2" | ||
type: FileHandle | ||
returns: | ||
- type: boolean | ||
description: "true if the file handles are equal, false otherwise." | ||
--- | ||
|
||
<div class="lua__search__keywords"> | ||
FileHandle:__eq – Check if two file handles are equal. | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
template: lua-class-function.html | ||
title: __gc | ||
icon: lua-shared | ||
tags: | ||
- lua | ||
- shared | ||
- needs-verification | ||
- needs-example | ||
lua: | ||
library: FileHandle | ||
function: __gc | ||
realm: shared | ||
description: "Close a file." | ||
|
||
|
||
returns: | ||
|
||
--- | ||
|
||
<div class="lua__search__keywords"> | ||
FileHandle:__gc – Close a file. | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
template: lua-class-function.html | ||
title: __len | ||
icon: lua-shared | ||
tags: | ||
- lua | ||
- shared | ||
- needs-verification | ||
- needs-example | ||
lua: | ||
library: FileHandle | ||
function: __len | ||
realm: shared | ||
description: "Get the length of a file." | ||
|
||
|
||
returns: | ||
- type: integer | ||
description: "The length of the file or nil if the file handle is invalid." | ||
--- | ||
|
||
<div class="lua__search__keywords"> | ||
FileHandle:__len – Get the length of a file. | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
template: lua-class-function.html | ||
title: __tostring | ||
icon: lua-shared | ||
tags: | ||
- lua | ||
- shared | ||
- needs-verification | ||
- needs-example | ||
lua: | ||
library: FileHandle | ||
function: __tostring | ||
realm: shared | ||
description: "Get the string representation of a file handle." | ||
|
||
|
||
returns: | ||
- type: string | ||
description: "The string representation of the file handle." | ||
--- | ||
|
||
<div class="lua__search__keywords"> | ||
FileHandle:__tostring – Get the string representation of a file handle. | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
template: lua-library-function.html | ||
title: AddPackFile | ||
icon: lua-shared | ||
tags: | ||
- lua | ||
- shared | ||
- needs-verification | ||
- needs-example | ||
lua: | ||
library: Files | ||
function: AddPackFile | ||
realm: shared | ||
description: "Add a pack file to the search path." | ||
|
||
arguments: | ||
- name: "path" | ||
type: string | ||
- name: "pathId" | ||
type: string | ||
returns: | ||
- type: boolean | ||
description: "true if the pack file was added, false otherwise." | ||
--- | ||
|
||
<div class="lua__search__keywords"> | ||
Files.AddPackFile – Add a pack file to the search path. | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
template: lua-library-function.html | ||
title: AddSearchPath | ||
icon: lua-shared | ||
tags: | ||
- lua | ||
- shared | ||
- needs-verification | ||
- needs-example | ||
lua: | ||
library: Files | ||
function: AddSearchPath | ||
realm: shared | ||
description: "Add a search path to the filesystem." | ||
|
||
arguments: | ||
- name: "path" | ||
type: string | ||
- name: "pathId" | ||
type: string | ||
- name: "addType" | ||
type: number | ||
default: "PATH_ADD_TO_TAIL" | ||
returns: | ||
|
||
--- | ||
|
||
<div class="lua__search__keywords"> | ||
Files.AddSearchPath – Add a search path to the filesystem. | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
template: lua-library-function.html | ||
title: BeginMapAccess | ||
icon: lua-shared | ||
tags: | ||
- lua | ||
- shared | ||
- needs-verification | ||
- needs-example | ||
lua: | ||
library: Files | ||
function: BeginMapAccess | ||
realm: shared | ||
description: "Begin map access." | ||
|
||
|
||
returns: | ||
|
||
--- | ||
|
||
<div class="lua__search__keywords"> | ||
Files.BeginMapAccess – Begin map access. | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
template: lua-library-function.html | ||
title: CancelWaitForResources | ||
icon: lua-shared | ||
tags: | ||
- lua | ||
- shared | ||
- needs-verification | ||
- needs-example | ||
lua: | ||
library: Files | ||
function: CancelWaitForResources | ||
realm: shared | ||
description: "Cancel waiting for resources." | ||
|
||
arguments: | ||
- name: "id" | ||
type: number | ||
returns: | ||
|
||
--- | ||
|
||
<div class="lua__search__keywords"> | ||
Files.CancelWaitForResources – Cancel waiting for resources. | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
template: lua-library-function.html | ||
title: Close | ||
icon: lua-shared | ||
tags: | ||
- lua | ||
- shared | ||
- needs-verification | ||
- needs-example | ||
lua: | ||
library: Files | ||
function: Close | ||
realm: shared | ||
description: "Close a file." | ||
|
||
arguments: | ||
- name: "file" | ||
type: FileHandle | ||
returns: | ||
|
||
--- | ||
|
||
<div class="lua__search__keywords"> | ||
Files.Close – Close a file. | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
template: lua-library-function.html | ||
title: CreateDirectoryHierarchy | ||
icon: lua-shared | ||
tags: | ||
- lua | ||
- shared | ||
- needs-verification | ||
- needs-example | ||
lua: | ||
library: Files | ||
function: CreateDirectoryHierarchy | ||
realm: shared | ||
description: "Create a directory hierarchy." | ||
|
||
arguments: | ||
- name: "path" | ||
type: string | ||
- name: "pathId" | ||
type: string | ||
default: "0" | ||
returns: | ||
|
||
--- | ||
|
||
<div class="lua__search__keywords"> | ||
Files.CreateDirectoryHierarchy – Create a directory hierarchy. | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
template: lua-library-function.html | ||
title: DiscardPreloadData | ||
icon: lua-shared | ||
tags: | ||
- lua | ||
- shared | ||
- needs-verification | ||
- needs-example | ||
lua: | ||
library: Files | ||
function: DiscardPreloadData | ||
realm: shared | ||
description: "Discard preload data." | ||
|
||
|
||
returns: | ||
|
||
--- | ||
|
||
<div class="lua__search__keywords"> | ||
Files.DiscardPreloadData – Discard preload data. | ||
</div> |
Oops, something went wrong.