Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Testicular Slingshot
Alchemy Viewer
Commits
94bc7bf4
Commit
94bc7bf4
authored
Jun 26, 2017
by
Drake Arconis
Browse files
Enums are nice
parent
92d6c7aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
indra/llvfs/llvfile.cpp
View file @
94bc7bf4
...
...
@@ -37,11 +37,6 @@
#include "llmemory.h"
#include "llvfs.h"
const
S32
LLVFile
::
READ
=
0x00000001
;
const
S32
LLVFile
::
WRITE
=
0x00000002
;
const
S32
LLVFile
::
READ_WRITE
=
0x00000003
;
// LLVFile::READ & LLVFile::WRITE
const
S32
LLVFile
::
APPEND
=
0x00000006
;
// 0x00000004 & LLVFile::WRITE
static
LLTrace
::
BlockTimerStatHandle
FTM_VFILE_WAIT
(
"VFile Wait"
);
//----------------------------------------------------------------------------
...
...
indra/llvfs/llvfile.h
View file @
94bc7bf4
...
...
@@ -35,6 +35,14 @@
class
LLVFile
{
public:
enum
operation_t
:
S32
{
READ
=
0x00000001
,
WRITE
=
0x00000002
,
READ_WRITE
=
0x00000003
,
// LLVFile::READ & LLVFile::WRITE
APPEND
=
0x00000006
// 0x00000004 & LLVFile::WRITE
};
LLVFile
(
LLVFS
*
vfs
,
const
LLUUID
&
file_id
,
const
LLAssetType
::
EType
file_type
,
S32
mode
=
LLVFile
::
READ
);
~
LLVFile
();
...
...
@@ -68,12 +76,6 @@ protected:
static
BOOL
sAllocdVFSThread
;
U32
threadPri
()
{
return
LLVFSThread
::
PRIORITY_NORMAL
+
llmin
((
U32
)
mPriority
,(
U32
)
0xfff
);
}
public:
static
const
S32
READ
;
static
const
S32
WRITE
;
static
const
S32
READ_WRITE
;
static
const
S32
APPEND
;
protected:
LLVFS
*
mVFS
;
LLUUID
mFileID
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment