mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
encapsulation.paddingBuffer can be statically allocated.
This commit is contained in:
parent
4ae63eccab
commit
a579c969e6
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ func WriteData(w io.Writer, data []byte) (int, error) {
|
||||||
return total, err
|
return total, err
|
||||||
}
|
}
|
||||||
|
|
||||||
var paddingBuffer = make([]byte, 1024)
|
var paddingBuffer [1024]byte
|
||||||
|
|
||||||
// WritePadding encodes padding chunks, whose total size (including their own
|
// WritePadding encodes padding chunks, whose total size (including their own
|
||||||
// length prefixes) is n. Returns the total number of bytes written to w, which
|
// length prefixes) is n. Returns the total number of bytes written to w, which
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue