Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
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
nexedi
MariaDB
Commits
58be9694
Commit
58be9694
authored
Jan 24, 2005
by
tomas@poseidon.ndb.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge poseidon.ndb.mysql.com:/home/tomas/mysql-5.0
into poseidon.ndb.mysql.com:/home/tomas/mysql-5.0-ndb
parents
618934cf
aafc5e7f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
36 deletions
+32
-36
ndb/include/ndbapi/NdbRecAttr.hpp
ndb/include/ndbapi/NdbRecAttr.hpp
+0
-36
ndb/src/ndbapi/NdbRecAttr.cpp
ndb/src/ndbapi/NdbRecAttr.cpp
+32
-0
No files found.
ndb/include/ndbapi/NdbRecAttr.hpp
View file @
58be9694
...
...
@@ -308,15 +308,6 @@ NdbRecAttr::arraySize() const
return
theArraySize
;
}
inline
Int64
NdbRecAttr
::
int64_value
()
const
{
Int64
val
;
memcpy
(
&
val
,
theRef
,
8
);
return
val
;
}
inline
Int32
NdbRecAttr
::
int32_value
()
const
...
...
@@ -338,15 +329,6 @@ NdbRecAttr::char_value() const
return
*
(
char
*
)
theRef
;
}
inline
Uint64
NdbRecAttr
::
u_64_value
()
const
{
Uint64
val
;
memcpy
(
&
val
,
theRef
,
8
);
return
val
;
}
inline
Uint32
NdbRecAttr
::
u_32_value
()
const
...
...
@@ -368,24 +350,6 @@ NdbRecAttr::u_char_value() const
return
*
(
Uint8
*
)
theRef
;
}
inline
float
NdbRecAttr
::
float_value
()
const
{
float
val
;
memcpy
(
&
val
,
theRef
,
sizeof
(
val
));
return
val
;
}
inline
double
NdbRecAttr
::
double_value
()
const
{
double
val
;
memcpy
(
&
val
,
theRef
,
sizeof
(
val
));
return
val
;
}
inline
void
NdbRecAttr
::
release
()
...
...
ndb/src/ndbapi/NdbRecAttr.cpp
View file @
58be9694
...
...
@@ -281,3 +281,35 @@ NdbOut& operator<<(NdbOut& out, const NdbRecAttr &r)
return
out
;
}
Int64
NdbRecAttr
::
int64_value
()
const
{
Int64
val
;
memcpy
(
&
val
,
theRef
,
8
);
return
val
;
}
Uint64
NdbRecAttr
::
u_64_value
()
const
{
Uint64
val
;
memcpy
(
&
val
,
theRef
,
8
);
return
val
;
}
float
NdbRecAttr
::
float_value
()
const
{
float
val
;
memcpy
(
&
val
,
theRef
,
sizeof
(
val
));
return
val
;
}
double
NdbRecAttr
::
double_value
()
const
{
double
val
;
memcpy
(
&
val
,
theRef
,
sizeof
(
val
));
return
val
;
}
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