WriteString implements Writer.
(s string)
| 539 | |
| 540 | // WriteString implements Writer. |
| 541 | func (b *UnsafeLinkBuffer) WriteString(s string) (n int, err error) { |
| 542 | if len(s) == 0 { |
| 543 | return |
| 544 | } |
| 545 | buf := unsafe.Slice(unsafe.StringData(s), len(s)) |
| 546 | return b.WriteBinary(buf) |
| 547 | } |
| 548 | |
| 549 | // WriteBinary implements Writer. |
| 550 | func (b *UnsafeLinkBuffer) WriteBinary(p []byte) (n int, err error) { |
nothing calls this directly
no test coverage detected