Skip to main content

Buffer

Buffer text clone and trim

text0=buffer.clone(u0, strings0,i);

query0 = buffer.trim.left.eol(text0);

Buffer DMA

buffer.dma(u0, 0, vg0,0);

Clear

Buffer clear

  buffer.dma(u0, dma0, buf0,0);
dma.strip.size(u0, dma0, 0);

Resize

Buffer resize

  buffer.dma(u0, dma0, buf0,0);
dma.strip.size(u0, dma0, 10);
private int square(int n)
{
int k = 0;
for (int j = 0; j < n; j++)
{
for (int i = 0; i < n; i++)
{
if (i * j == n * n)
{
return k;
}
k++;
}
}
}