We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a8ae3ba + 44a0dc4 commit f94b01eCopy full SHA for f94b01e
1 file changed
rlp/raw.go
@@ -145,6 +145,14 @@ func (r *RawList[T]) Append(item T) error {
145
return nil
146
}
147
148
+// AppendRaw adds an encoded item to the list.
149
+func (r *RawList[T]) AppendRaw(b []byte) {
150
+ if r.enc == nil {
151
+ r.enc = make([]byte, 9)
152
+ }
153
+ r.enc = append(r.enc, b...)
154
+}
155
+
156
// StringSize returns the encoded size of a string.
157
func StringSize(s string) uint64 {
158
switch n := len(s); n {
0 commit comments