good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
Erigon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
a
Erigon
Commits
fc8b2461
Commit
fc8b2461
authored
9 years ago
by
Felix Lange
Browse files
Options
Downloads
Patches
Plain Diff
rlp: move ListSize to raw.go
parent
24bb68e7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
rlp/encode.go
+0
-6
0 additions, 6 deletions
rlp/encode.go
rlp/raw.go
+6
-0
6 additions, 0 deletions
rlp/raw.go
with
6 additions
and
6 deletions
rlp/encode.go
+
0
−
6
View file @
fc8b2461
...
...
@@ -45,12 +45,6 @@ type Encoder interface {
EncodeRLP
(
io
.
Writer
)
error
}
// ListSize returns the encoded size of an RLP list with the given
// content size.
func
ListSize
(
contentSize
uint64
)
uint64
{
return
uint64
(
headsize
(
contentSize
))
+
contentSize
}
// Encode writes the RLP encoding of val to w. Note that Encode may
// perform many small writes in some cases. Consider making w
// buffered.
...
...
This diff is collapsed.
Click to expand it.
rlp/raw.go
+
6
−
0
View file @
fc8b2461
...
...
@@ -28,6 +28,12 @@ type RawValue []byte
var
rawValueType
=
reflect
.
TypeOf
(
RawValue
{})
// ListSize returns the encoded size of an RLP list with the given
// content size.
func
ListSize
(
contentSize
uint64
)
uint64
{
return
uint64
(
headsize
(
contentSize
))
+
contentSize
}
// Split returns the content of first RLP value and any
// bytes after the value as subslices of b.
func
Split
(
b
[]
byte
)
(
k
Kind
,
content
,
rest
[]
byte
,
err
error
)
{
...
...
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