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
nanahira
ygopro
Commits
9101d63b
Commit
9101d63b
authored
Oct 26, 2018
by
edo9300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated bufferio functions
parent
84566be2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
gframe/bufferio.h
gframe/bufferio.h
+9
-5
No files found.
gframe/bufferio.h
View file @
9101d63b
...
...
@@ -7,8 +7,8 @@
class
BufferIO
{
public:
inline
static
unsigned
long
long
ReadInt64
(
char
*&
p
)
{
unsigned
long
long
ret
=
*
(
unsigned
long
long
*
)
p
;
inline
static
long
long
ReadInt64
(
char
*&
p
)
{
long
long
ret
=
*
(
long
long
*
)
p
;
p
+=
8
;
return
ret
;
}
...
...
@@ -32,16 +32,20 @@ public:
p
++
;
return
ret
;
}
inline
static
void
WriteInt64
(
char
*&
p
,
long
long
val
)
{
std
::
memcpy
(
p
,
&
val
,
sizeof
(
val
));
p
+=
8
;
}
inline
static
void
WriteInt32
(
char
*&
p
,
int
val
)
{
(
*
(
int
*
)
p
)
=
val
;
std
::
memcpy
(
p
,
&
val
,
sizeof
(
val
))
;
p
+=
4
;
}
inline
static
void
WriteInt16
(
char
*&
p
,
short
val
)
{
(
*
(
short
*
)
p
)
=
val
;
std
::
memcpy
(
p
,
&
val
,
sizeof
(
val
))
;
p
+=
2
;
}
inline
static
void
WriteInt8
(
char
*&
p
,
char
val
)
{
*
p
=
val
;
std
::
memcpy
(
p
,
&
val
,
sizeof
(
val
))
;
p
++
;
}
template
<
typename
T1
,
typename
T2
>
...
...
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