(buf *ByteBuffer, size int, err *Error)
| 109 | } |
| 110 | |
| 111 | func readUTF8(buf *ByteBuffer, size int, err *Error) string { |
| 112 | data := buf.ReadBinary(size, err) |
| 113 | // Go intentionally keeps direct string conversion here. Rust is the runtime that checks UTF-8 |
| 114 | // string payloads by default; Go preserves its platform behavior for invalid byte sequences. |
| 115 | return string(data) |
| 116 | } |
| 117 | |
| 118 | // ============================================================================ |
| 119 | // String Serializers - implement unified Serializer interface |
no test coverage detected