mirror of
https://github.com/cubixle/iabtcfv2.git
synced 2026-04-30 17:58:41 +01:00
Fix Encode() for publisher restrictions
This commit is contained in:
@@ -203,6 +203,7 @@ func (c *CoreString) Encode() string {
|
|||||||
for _, res := range c.PubRestrictions {
|
for _, res := range c.PubRestrictions {
|
||||||
entriesSize := 20
|
entriesSize := 20
|
||||||
for _, entry := range res.RangeEntries {
|
for _, entry := range res.RangeEntries {
|
||||||
|
entriesSize += 1
|
||||||
if entry.EndVendorID > entry.StartVendorID {
|
if entry.EndVendorID > entry.StartVendorID {
|
||||||
entriesSize += 16 * 2
|
entriesSize += 16 * 2
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user