public char[] allocCharBuffer(CharBufferType type, int minSize) { if (type.size > minSize) { minSize = type.size; } int ix = type.ordinal(); char[] buffer = mCharBuffers[ix]; if (buffer == null || buffer.length < minSize) { buffer = calloc(minSize); } else { mCharBuffers[ix] = null; } return buffer; }
public final void releaseCharBuffer(CharBufferType type, char[] buffer) { _charBuffers[type.ordinal()] = buffer; }
public void releaseCharBuffer(CharBufferType type, char[] buffer) { mCharBuffers[type.ordinal()] = buffer; }
public final char[] allocCharBuffer(CharBufferType type, int minSize) { if (type.size > minSize) { minSize = type.size; } int ix = type.ordinal(); char[] buffer = _charBuffers[ix]; if (buffer == null || buffer.length < minSize) { buffer = calloc(minSize); } else { _charBuffers[ix] = null; } return buffer; }
public final void releaseCharBuffer(CharBufferType type, char[] buffer) { _charBuffers[type.ordinal()] = buffer; }
public final char[] allocCharBuffer(CharBufferType type, int minSize) { if (type.size > minSize) { minSize = type.size; } int ix = type.ordinal(); char[] buffer = _charBuffers[ix]; if (buffer == null || buffer.length < minSize) { buffer = calloc(minSize); } else { _charBuffers[ix] = null; } return buffer; }
public final char[] allocCharBuffer(CharBufferType type, int minSize) { if (type.size > minSize) { minSize = type.size; } int ix = type.ordinal(); char[] buffer = _charBuffers[ix]; if (buffer == null || buffer.length < minSize) { buffer = calloc(minSize); } else { _charBuffers[ix] = null; } return buffer; }
public final void releaseCharBuffer(CharBufferType type, char[] buffer) { _charBuffers[type.ordinal()] = buffer; }
public final char[] allocCharBuffer(CharBufferType type, int minSize) { if (type.size > minSize) { minSize = type.size; } int ix = type.ordinal(); char[] buffer = _charBuffers[ix]; if (buffer == null || buffer.length < minSize) { buffer = calloc(minSize); } else { _charBuffers[ix] = null; } return buffer; }
public final void releaseCharBuffer(CharBufferType type, char[] buffer) { _charBuffers[type.ordinal()] = buffer; }