Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zipr-sdk
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
Show more breadcrumbs
Open Source Software
zipr-sdk
Commits
3857016d
Commit
3857016d
authored
9 years ago
by
whh8b
Browse files
Options
Downloads
Patches
Plain Diff
Track dollop truncation.
parent
1b2e026f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/dollop.h
+5
-1
5 additions, 1 deletion
include/dollop.h
with
5 additions
and
1 deletion
include/dollop.h
+
5
−
1
View file @
3857016d
...
...
@@ -89,7 +89,7 @@ class Dollop_t : public Placeable_t, public std::list<DollopEntry_t*> {
static
Dollop_t
*
CreateNewDollop
(
libIRDB
::
Instruction_t
*
start
);
Dollop_t
(
libIRDB
::
Instruction_t
*
start
);
Dollop_t
()
{
m_size
=
0
;
}
Dollop_t
()
{
m_size
=
0
;
m_was_truncated
=
false
;
}
size_t
GetSize
()
const
{
return
m_size
;
...
...
@@ -109,10 +109,14 @@ class Dollop_t : public Placeable_t, public std::list<DollopEntry_t*> {
DollopEntry_t
*
FallthroughDollopEntry
(
DollopEntry_t
*
)
const
;
void
WasTruncated
(
bool
truncated
)
{
m_was_truncated
=
truncated
;
}
bool
WasTruncated
(
void
)
const
{
return
m_was_truncated
;
}
private
:
size_t
CalculateWorstCaseSize
();
size_t
m_size
;
Dollop_t
*
m_fallthrough_dollop
;
bool
m_was_truncated
;
};
}
#endif
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