Bytes constructs a Bytes which exposes the content of b.
(b []byte)
| 6 | |
| 7 | // Bytes constructs a Bytes which exposes the content of b. |
| 8 | func Bytes(b []byte) protocol.Bytes { |
| 9 | return protocol.NewBytes(b) |
| 10 | } |
| 11 | |
| 12 | // String constructs a Bytes which exposes the content of s. |
| 13 | func String(s string) protocol.Bytes { |