Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
REIKAI
ygopro
Commits
385f67a3
Commit
385f67a3
authored
Nov 29, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extra buffer functions
parent
67f6d60c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
gframe/bufferio.h
gframe/bufferio.h
+10
-0
No files found.
gframe/bufferio.h
View file @
385f67a3
...
@@ -12,11 +12,21 @@ public:
...
@@ -12,11 +12,21 @@ public:
p
+=
4
;
p
+=
4
;
return
ret
;
return
ret
;
}
}
inline
static
unsigned
int
ReadUInt32
(
char
*&
p
)
{
unsigned
int
ret
=
*
(
unsigned
int
*
)
p
;
p
+=
4
;
return
ret
;
}
inline
static
short
ReadInt16
(
char
*&
p
)
{
inline
static
short
ReadInt16
(
char
*&
p
)
{
short
ret
=
*
(
short
*
)
p
;
short
ret
=
*
(
short
*
)
p
;
p
+=
2
;
p
+=
2
;
return
ret
;
return
ret
;
}
}
inline
static
unsigned
short
ReadUInt16
(
char
*&
p
)
{
unsigned
short
ret
=
*
(
unsigned
short
*
)
p
;
p
+=
2
;
return
ret
;
}
inline
static
char
ReadInt8
(
char
*&
p
)
{
inline
static
char
ReadInt8
(
char
*&
p
)
{
char
ret
=
*
(
char
*
)
p
;
char
ret
=
*
(
char
*
)
p
;
p
++
;
p
++
;
...
...
Write
Preview
Markdown
is supported
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