Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Base DAQ
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
BIAS
DAQs
Base DAQ
Compare revisions
4ab0a2d1455b3f285bba05e54c732772ad6852ac to 98d5831a3058e261def1b2c2df3f6bc848920eb9
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
bias/daqs/base-daq
Select target project
No results found
98d5831a3058e261def1b2c2df3f6bc848920eb9
Select Git revision
Swap
Target
bias/daqs/base-daq
Select target project
bias/daqs/base-daq
1 result
4ab0a2d1455b3f285bba05e54c732772ad6852ac
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
fix bytesize computation
· 9cd44a06
Valerio Pastore
authored
1 year ago
9cd44a06
Update Base_Packet.h
· 98d5831a
Valerio Pastore
authored
1 year ago
98d5831a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/Base_Packet.h
+2
-2
2 additions, 2 deletions
include/Base_Packet.h
with
2 additions
and
2 deletions
include/Base_Packet.h
View file @
98d5831a
...
...
@@ -62,8 +62,8 @@ protected:
updateFieldSizes
(
structure
);
updateFieldOffsets
(
structure
);
updateFieldNameAndIndexMap
(
structure
);
this
->
byte
Size
=
std
::
accumulate
(
fieldSizes
.
begin
(),
fieldSizes
.
end
(),
0
)
/
8
+
1
;
//
/8 +1 for byte size
uint
bit
Size
=
std
::
accumulate
(
fieldSizes
.
begin
(),
fieldSizes
.
end
(),
0
);
this
->
byteSize
=
bitSize
%
8
==
0
?
bitSize
/
8
:
bitSize
/
8
+
1
;
//
add another byte to contain extra bits
}
public
:
...
...
This diff is collapsed.
Click to expand it.