Wrap an existing array with a vector. The array should not be modified after this call. @param data the initial data for the vector @return a vector wrapping the data
(byte[] data)
| 80 | * @return a vector wrapping the data |
| 81 | */ |
| 82 | public static ByteVec wrap(byte[] data) { |
| 83 | return new ByteVec(data); |
| 84 | } |
| 85 | |
| 86 | /** Returns the number of elements the vector can hold without reallocating. */ |
| 87 | public int capacity() { |
no outgoing calls