Java Code Examples for io.netty.util.internal.PlatformDependent#allocateUninitializedArray()
The following examples show how to use
io.netty.util.internal.PlatformDependent#allocateUninitializedArray() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: UnitializedArrayBenchmark.java From netty-4.1.22 with Apache License 2.0 | 4 votes |
@Benchmark public byte[] allocateUninitializedByteArray() { return PlatformDependent.allocateUninitializedArray(size); }
Example 2
Source File: UnpooledUnsafeHeapByteBuf.java From netty-4.1.22 with Apache License 2.0 | 4 votes |
@Override byte[] allocateArray(int initialCapacity) { return PlatformDependent.allocateUninitializedArray(initialCapacity); }
Example 3
Source File: PoolArena.java From netty-4.1.22 with Apache License 2.0 | 4 votes |
private static byte[] newByteArray(int size) { return PlatformDependent.allocateUninitializedArray(size); }
Example 4
Source File: UnreleasableNoZeroingHeapByteBuf.java From servicetalk with Apache License 2.0 | 4 votes |
@Override protected byte[] allocateArray(int initialCapacity) { return PlatformDependent.allocateUninitializedArray(initialCapacity); }