Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zipr Backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Open Source Software
Zipr Backend
Commits
bdb9d2dd
Commit
bdb9d2dd
authored
6 years ago
by
Jason Hiser
Browse files
Options
Downloads
Patches
Plain Diff
updated to remove unneeded stuff from sdk
parent
95ff3015
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#2029
passed
6 years ago
Stage: clean
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/range.cpp
+59
-0
59 additions, 0 deletions
src/range.cpp
with
59 additions
and
0 deletions
src/range.cpp
0 → 100644
+
59
−
0
View file @
bdb9d2dd
#include
<zipr-sdk>
using
namespace
Zipr_SDK
;
Zipr_SDK
::
Range_t
::
Range_t
(
RangeAddress_t
p_s
,
RangeAddress_t
p_e
)
:
m_start
(
p_s
),
m_end
(
p_e
)
{
}
Zipr_SDK
::
Range_t
::
Range_t
()
:
m_start
(
0
),
m_end
(
0
)
{
}
Zipr_SDK
::
Range_t
::~
Range_t
()
{
}
RangeAddress_t
Zipr_SDK
::
Range_t
::
getStart
()
const
{
return
m_start
;
}
RangeAddress_t
Zipr_SDK
::
Range_t
::
getEnd
()
const
{
return
m_end
;
}
void
Zipr_SDK
::
Range_t
::
setStart
(
RangeAddress_t
s
)
{
m_start
=
s
;
}
void
Zipr_SDK
::
Range_t
::
setEnd
(
RangeAddress_t
e
)
{
m_end
=
e
;
}
bool
Zipr_SDK
::
Range_t
::
is2ByteRange
()
const
{
return
(
m_end
-
m_start
)
==
2
;
};
bool
Zipr_SDK
::
Range_t
::
is5ByteRange
()
const
{
return
(
m_end
-
m_start
)
==
5
;
};
bool
Zipr_SDK
::
Range_t
::
isInfiniteRange
()
const
{
return
m_end
==
(
RangeAddress_t
)
-
1
;
};
// Caution! Only works for NON-OVERLAPPING ranges.
bool
Zipr_SDK
::
Range_tCompare
::
operator
()
(
const
Range_t
first
,
const
Range_t
second
)
const
{
return
first
.
getEnd
()
<
second
.
getStart
();
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment