Add comment on functions

This commit is contained in:
Thomas LAY
2020-04-06 12:25:25 +02:00
parent 9a1d3523ab
commit 2ad493c354
5 changed files with 26 additions and 0 deletions
+2
View File
@@ -13,6 +13,7 @@ type DisclosedVendors struct {
RangeEntries []*RangeEntry
}
// Returns true if vendor id is disclosed for validating OOB signaling
func (d *DisclosedVendors) IsVendorDisclosed(id int) bool {
if d.IsRangeEncoding {
for _, entry := range d.RangeEntries {
@@ -26,6 +27,7 @@ func (d *DisclosedVendors) IsVendorDisclosed(id int) bool {
return d.DisclosedVendors[id]
}
// Returns structure as a base64 raw url encoded string
func (d *DisclosedVendors) Encode() string {
bitSize := 20