static byte getByte(byte[] memory, int index) {
        return memory[index];
    }
Utility class for heap buffers.

Forked from <a href="https://github.com/netty/netty">Netty</a>.
jraft-core/src/main/java/com/alipay/sofa/jraft/util/HeapByteBufUtil.java