toShortArray

fun Buffer<Short>.toShortArray(): ShortArray

Returns a new ShortArray containing all of the elements of this Buffer.