Wraps a byte array in a ByteString without copying it. @param array A byte array that must be considered read-only from there on. @since 1.5
(final byte[] array)
| 295 | * @since 1.5 |
| 296 | */ |
| 297 | public static ByteString wrap(final byte[] array) { |
| 298 | return ZeroCopyLiteralByteString.wrap(array); |
| 299 | } |
| 300 | |
| 301 | /** |
| 302 | * Extracts the byte array from the given {@link ByteString} without copy. |