Skip to content

Add ByteLen for Node without allocations#24

Open
DobryySoul wants to merge 1 commit intoozontech:masterfrom
DobryySoul:byte-len
Open

Add ByteLen for Node without allocations#24
DobryySoul wants to merge 1 commit intoozontech:masterfrom
DobryySoul:byte-len

Conversation

@DobryySoul
Copy link

Summary

  • add Node.ByteLen() to compute encoded JSON length without encoding/allocations
  • add escapedStringLen helper to match encode escaping rules
  • add tests covering common cases and escaping

Test plan

  • go test ./...

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