Allocate a heap {@link ByteBuf} with the given initial capacity and the given maximal capacity.
See Implementation
Allocate a heap {@link ByteBuf} with the given initial capacity and the given maximal capacity.