Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Andrew Bauer
VTK
Commits
a73baa09
Commit
a73baa09
authored
Nov 03, 1995
by
Ken Martin
Browse files
better swapping
parent
99ea226c
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/vtkByteSwap.hh
View file @
a73baa09
...
...
@@ -52,10 +52,34 @@ class vtkByteSwap
{
public:
void
Delete
()
{
delete
this
;};
void
Swap4
(
char
*
c
);
void
Swap4
(
float
*
p
)
{
Swap4
((
char
*
)
p
);};
void
Swap4
(
int
*
i
)
{
Swap4
((
char
*
)
i
);};
void
Swap4
(
unsigned
long
*
i
)
{
Swap4
((
char
*
)
i
);};
void
Swap4LE
(
char
*
c
);
void
Swap4LE
(
float
*
p
)
{
Swap4LE
((
char
*
)
p
);};
void
Swap4LE
(
int
*
i
)
{
Swap4LE
((
char
*
)
i
);};
void
Swap4LE
(
short
int
*
i
)
{
Swap4LE
((
char
*
)
i
);};
void
Swap4LE
(
unsigned
long
*
i
)
{
Swap4LE
((
char
*
)
i
);};
void
Swap4LE
(
unsigned
char
*
i
)
{
Swap4LE
((
char
*
)
i
);};
void
Swap4LERange
(
char
*
c
,
int
num
);
void
Swap4LERange
(
float
*
p
,
int
num
)
{
Swap4LERange
((
char
*
)
p
,
num
);};
void
Swap4LERange
(
int
*
i
,
int
num
)
{
Swap4LERange
((
char
*
)
i
,
num
);};
void
Swap4LERange
(
short
int
*
i
,
int
num
)
{
Swap4LERange
((
char
*
)
i
,
num
);};
void
Swap4LERange
(
unsigned
long
*
i
,
int
num
)
{
Swap4LERange
((
char
*
)
i
,
num
);};
void
Swap4LERange
(
unsigned
char
*
i
,
int
num
)
{
Swap4LERange
((
char
*
)
i
,
num
);};
void
Swap4BE
(
char
*
c
);
void
Swap4BE
(
float
*
p
)
{
Swap4BE
((
char
*
)
p
);};
void
Swap4BE
(
int
*
i
)
{
Swap4BE
((
char
*
)
i
);};
void
Swap4BE
(
short
int
*
i
)
{
Swap4BE
((
char
*
)
i
);};
void
Swap4BE
(
unsigned
long
*
i
)
{
Swap4BE
((
char
*
)
i
);};
void
Swap4BE
(
unsigned
char
*
i
)
{
Swap4BE
((
char
*
)
i
);};
void
Swap4BERange
(
char
*
c
,
int
num
);
void
Swap4BERange
(
float
*
p
,
int
num
)
{
Swap4BERange
((
char
*
)
p
,
num
);};
void
Swap4BERange
(
int
*
i
,
int
num
)
{
Swap4BERange
((
char
*
)
i
,
num
);};
void
Swap4BERange
(
short
int
*
i
,
int
num
)
{
Swap4BERange
((
char
*
)
i
,
num
);};
void
Swap4BERange
(
unsigned
long
*
i
,
int
num
)
{
Swap4BERange
((
char
*
)
i
,
num
);};
void
Swap4BERange
(
unsigned
char
*
i
,
int
num
)
{
Swap4BERange
((
char
*
)
i
,
num
);};
};
#endif
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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