MCPcopy Create free account
hub / github.com/apache/kafka / toArray

Method toArray

clients/src/main/java/org/apache/kafka/common/utils/Utils.java:193–195  ·  view source on GitHub ↗

Read the given byte buffer into a byte array

(ByteBuffer buffer)

Source from the content-addressed store, hash-verified

191 * Read the given byte buffer into a byte array
192 */
193 public static byte[] toArray(ByteBuffer buffer) {
194 return toArray(buffer, 0, buffer.limit());
195 }
196
197 /**
198 * Read a byte array from the given offset and size in the buffer

Callers 15

asStringMethod · 0.95
testIteratorMethod · 0.80
MetadataRequestMethod · 0.80
MetadataResponseMethod · 0.80
FetchResponseMethod · 0.80
OffsetFetchRequestMethod · 0.80
OffsetCommitResponseMethod · 0.80
ListOffsetRequestMethod · 0.80
ProduceResponseMethod · 0.80
ListOffsetResponseMethod · 0.80
OffsetFetchResponseMethod · 0.80
FetchRequestMethod · 0.80

Calls 2

positionMethod · 0.65
getMethod · 0.45

Tested by 2

asStringMethod · 0.76
testIteratorMethod · 0.64