// Length of a written frame
Length of a written frame
// Length of a written frame
func (f *DatagramFrame) Length(_ protocol.VersionNumber) protocol.ByteCount {
	length := 1 + protocol.ByteCount(len(f.Data))
	if f.DataLenPresent {
		length += quicvarint.Len(uint64(len(f.Data)))
	}
	return length
}
func ( f * DatagramFrame ) Length ( _ protocol . VersionNumber ) protocol . ByteCount { length := 1 + protocol . ByteCount ( len ( f . Data ) ) if f . DataLenPresent { length += quicvarint . Len ( uint64 ( len ( f . Data ) ) ) } return length }
Length of a written frame
Length of a written frame