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 AllowedVendors struct {
RangeEntries []*RangeEntry
}
// Returns true if vendor id is allowed for OOB signaling
func (a *AllowedVendors) IsVendorAllowed(id int) bool {
if a.IsRangeEncoding {
for _, entry := range a.RangeEntries {
@@ -26,6 +27,7 @@ func (a *AllowedVendors) IsVendorAllowed(id int) bool {
return a.AllowedVendors[id]
}
// Returns structure as a base64 raw url encoded string
func (a *AllowedVendors) Encode() string {
bitSize := 20