• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lightningnetwork / lnd / 13408822928

19 Feb 2025 08:59AM UTC coverage: 41.123% (-17.7%) from 58.794%
13408822928

Pull #9521

github

web-flow
Merge d2f397b3c into 0e8786348
Pull Request #9521: unit: remove GOACC, use Go 1.20 native coverage functionality

92496 of 224923 relevant lines covered (41.12%)

18825.83 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/buffer/write.go
1
package buffer
2

3
import (
4
        "github.com/lightningnetwork/lnd/lnwire"
5
)
6

7
// WriteSize represents the size of the maximum plaintext message than can be
8
// sent using brontide. The buffer does not include extra space for the MAC, as
9
// that is applied by the Noise protocol after encrypting the plaintext.
10
const WriteSize = lnwire.MaxSliceLength
11

12
// Write is static byte array occupying to maximum-allowed plaintext-message
13
// size.
14
type Write [WriteSize]byte
15

16
// Recycle zeroes the Write, making it fresh for another use.
17
func (b *Write) Recycle() {
×
18
        RecycleSlice(b[:])
×
19
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc