AlphaTab.IO.ByteBuffer.WithCapactiy C# (CSharp) Method

WithCapactiy() public static method

public static WithCapactiy ( int capacity ) : ByteBuffer
capacity int
return ByteBuffer
        public static ByteBuffer WithCapactiy(int capacity)
        {
            ByteBuffer buffer = new ByteBuffer();
            buffer._buffer = new byte[capacity];
            buffer._capacity = capacity;
            return buffer;
        }