Skip to content

4.X: fix bitfield off-by-one encoding - #108

Open
yuzawa-san wants to merge 1 commit into
IABTechLab:4.Xfrom
yuzawa-san:4.X-roundtrip-check
Open

4.X: fix bitfield off-by-one encoding#108
yuzawa-san wants to merge 1 commit into
IABTechLab:4.Xfrom
yuzawa-san:4.X-roundtrip-check

Conversation

@yuzawa-san

Copy link
Copy Markdown
Contributor

this addresses the feedback done in #83 (comment)

from one of the tcf specs:

PurposeConsent
Bitfield(24)

One bit for each Purpose:
1 Consent
0 No Consent
The user’s consent value for each Purpose established on the legal basis of consent.

The Purposes are numerically identified and published in the Global Vendor List. From left to right, Purpose 1 maps to the 0th bit, purpose 24 maps to the bit at index 23. Special Purposes are a different ID space and not included in this field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant