Skip to content

Conversation

felixschlegel
Copy link
Contributor

Motivation:

String.count is the character count, but not the byte count

Modifications:

  • String+KafkaContiguousBytes: use String.utf8.count when creating
    UnsafeRawBufferPointer

Motivation:

`String.count` is the character count, but not the byte count

Modifications:

* `String+KafkaContiguousBytes`: use `String.utf8.count` when creating
  `UnsafeRawBufferPointer`
@felixschlegel felixschlegel force-pushed the fs-kafka-fix-string-buffer-size branch from 6bdbe9b to 74caece Compare July 28, 2023 09:30
@FranzBusch FranzBusch merged commit 3a85aff into swift-server:main Jul 28, 2023
@FranzBusch FranzBusch deleted the fs-kafka-fix-string-buffer-size branch July 28, 2023 10:11
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.

2 participants