From 2ae8f1722634583287b749942c9f5b1568bfe196 Mon Sep 17 00:00:00 2001 From: Shlomi Amit Date: Sat, 29 Jun 2024 18:48:56 +0300 Subject: [PATCH] More coverage fix --- application_defined.go | 1 + 1 file changed, 1 insertion(+) diff --git a/application_defined.go b/application_defined.go index acf4748..b592262 100644 --- a/application_defined.go +++ b/application_defined.go @@ -107,6 +107,7 @@ func (a *ApplicationDefined) Unmarshal(rawPacket []byte) error { return nil } +// MarshalSize returns the size of the packet once marshaled func (a *ApplicationDefined) MarshalSize() int { dataLength := len(a.Data) // Calculate the padding size to be added to make the packet length a multiple of 4 bytes.