(this BytesSink sink, byte[] bytes)
| 501 | } |
| 502 | |
| 503 | private static void Write(this BytesSink sink, byte[] bytes) |
| 504 | { |
| 505 | var start = 0U; |
| 506 | while (start != bytes.Length) |
| 507 | { |
| 508 | var written = (uint)bytes.Length; |
| 509 | var buffer = bytes.AsSpan((int)start); |
| 510 | FFI.bytes_sink_write(sink, buffer, ref written); |
| 511 | start += written; |
| 512 | } |
| 513 | } |
| 514 | |
| 515 | #pragma warning disable IDE1006 // Naming Styles - methods below are meant for FFI. |
| 516 |
no test coverage detected