Skip to content

Fix/non addressable pointer encode#42

Merged
xe-nvdk merged 1 commit intov6from
fix/non-addressable-pointer-encode
Mar 2, 2026
Merged

Fix/non addressable pointer encode#42
xe-nvdk merged 1 commit intov6from
fix/non-addressable-pointer-encode

Conversation

@xe-nvdk
Copy link
Copy Markdown
Member

@xe-nvdk xe-nvdk commented Mar 2, 2026

No description provided.

@xe-nvdk xe-nvdk changed the base branch from v5 to v6 March 2, 2026 17:44
Add ensureAddr helper that creates an addressable copy when v.CanAddr()
is false, instead of returning an error. Applied to encodeCustomValuePtr,
marshalValuePtr, marshalBinaryValueAddr, marshalTextValueAddr, and
makeExtEncoderAddr. The common case (struct fields) remains zero-cost
since they are already addressable.

Closes #3
@xe-nvdk xe-nvdk force-pushed the fix/non-addressable-pointer-encode branch from 1dd2a07 to 3a1dedd Compare March 2, 2026 17:47
@xe-nvdk xe-nvdk merged commit d5e2e42 into v6 Mar 2, 2026
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