AlphaTab.IO.ByteBuffer.WithCapactiy C# (CSharp) 메소드

WithCapactiy() 공개 정적인 메소드

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