Skip to content

Correct UTF8 builder return types in API reference - #153

Open
dajiaohuang wants to merge 1 commit into
Cysharp:masterfrom
dajiaohuang:fix/zstring-docs-utf8-types-20261015
Open

dajiaohuang wants to merge 1 commit into
Cysharp:masterfrom
dajiaohuang:fix/zstring-docs-utf8-types-20261015

Conversation

@dajiaohuang

Copy link
Copy Markdown

Correction

The Utf8ValueStringBuilder reference lists character-based return types for five byte-buffer APIs. This contradicts their actual public signatures and gives the wrong types to callers using the advertised direct-buffer path.

Change only those five cells to ReadOnlySpan<byte>, ReadOnlyMemory<byte>, ArraySegment<byte>, Memory<byte>, and Span<byte>. The UTF16 reference remains unchanged.

Validated against the public signatures and an isolated .NET fixture that assigns each return value to its documented byte-based type. No runtime behavior changes.

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