C_0020buffers.html 7.25 KB
Newer Older
-urso-'s avatar
-urso- committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
<html
  ><head
    ><title
      >CFFI-Util Source</title
    ><link href="style.css" rel="stylesheet"
    /><link title="Print" href="print.css" rel="alternate stylesheet"
    /></head
  ><body
    ><div class="qbook"
      ><h1 class="title"
        >CFFI-Util Source</h1
      ><div class="contents"
        ><h2
  ><a name="C_0020buffers"
  >C buffers</a
>&nbsp;</h2
><div class="nav-links"
  ><a class="nav-link" href="defcfun_0020extension.html"
  >prev</a
> | <span class="dead-nav-link"
  >up</span
> | <a href="C_0020buffer_0020streams.html"
  >next</a
> | <a href="index.html"
    >toc</a
  ></div
>
<pre class="code"
29
  ><span class="first-line"><p><span class="paren">(</span>defstruct cbuffer <br>&nbsp;&nbsp;<span class="paren">(</span>data <span class="paren">(</span>foreign-alloc :uchar :count 16<span class="paren">)</span><span class="paren">)</span> <br>&nbsp;&nbsp;<span class="paren">(</span>size 0<span class="paren">)</span> <br>&nbsp;&nbsp;<span class="paren">(</span>length 16<span class="paren">)</span><span class="paren">)</span> </p></span><span class"body"></span></pre
-urso-'s avatar
-urso- committed
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
>


<div class="computational-element-link computational-element-link-variable"
  ><p
    ><a href="api/variable_005FCFFI-UTIL_003A_003A_002AUSE-CBUFFER-POOL_002A.html" name="variable_005FCFFI-UTIL_003A_003A_002AUSE-CBUFFER-POOL_002A"
      >Variable *USE-CBUFFER-POOL*</a
    > .</p
  ></div
>

<div class="computational-element-link computational-element-link-variable"
  ><p
    ><a href="api/variable_005FCFFI-UTIL_003A_003A_002ACBUFFER-POOL-MAX-SIZE_002A.html" name="variable_005FCFFI-UTIL_003A_003A_002ACBUFFER-POOL-MAX-SIZE_002A"
      >Variable *CBUFFER-POOL-MAX-SIZE*</a
    > max num of buffers in pool</p
  ></div
>

<div class="computational-element-link computational-element-link-variable"
  ><p
    ><a href="api/variable_005FCFFI-UTIL_003A_003A_002ACBUFFER-POOL-MIN-BUFFER-SIZE_002A.html" name="variable_005FCFFI-UTIL_003A_003A_002ACBUFFER-POOL-MIN-BUFFER-SIZE_002A"
      >Variable *CBUFFER-POOL-MIN-BUFFER-SIZE*</a
    > min size of buffers in pool</p
  ></div
>

<div class="computational-element-link computational-element-link-variable"
  ><p
    ><a href="api/variable_005FCFFI-UTIL_003A_003A_002ACBUFFER-POOL-MAX-BUFFER-SIZE_002A.html" name="variable_005FCFFI-UTIL_003A_003A_002ACBUFFER-POOL-MAX-BUFFER-SIZE_002A"
      >Variable *CBUFFER-POOL-MAX-BUFFER-SIZE*</a
    > </p
  ></div
> 
<div class="computational-element-link computational-element-link-function"
  ><p
    ><a href="api/function_005FCFFI-UTIL_003A_003AMAKE-CBUFFER-POOL.html" name="function_005FCFFI-UTIL_003A_003AMAKE-CBUFFER-POOL"
      >Function MAKE-CBUFFER-POOL</a
    > make-cbuffer-pool creates a priority-pool using the length
   of buffers as priority.</p
  ></div
>

<div class="computational-element-link computational-element-link-variable"
  ><p
    ><a href="api/variable_005FCFFI-UTIL_003A_003A_002ACBUFFER-POOL_002A.html" name="variable_005FCFFI-UTIL_003A_003A_002ACBUFFER-POOL_002A"
      >Variable *CBUFFER-POOL*</a
    > </p
  ></div
>

<div class="computational-element-link computational-element-link-function"
  ><p
    ><a href="api/function_005FCFFI-UTIL_003A_003ACLEAR-CBUFFER-POOL.html" name="function_005FCFFI-UTIL_003A_003ACLEAR-CBUFFER-POOL"
      >Function CLEAR-CBUFFER-POOL</a
    > </p
  ></div
>

<pre class="code"
90
  ><span class="first-line"><p><span class="paren">(</span>defcfun "memcpy"     :pointer <br>&nbsp;&nbsp;<span class="paren">(</span>dest :pointer<span class="paren">)</span> <br>&nbsp;&nbsp;<span class="paren">(</span>src :pointer<span class="paren">)</span> <br>&nbsp;&nbsp;<span class="paren">(</span>length :int<span class="paren">)</span><span class="paren">)</span> </p></span><span class"body"></span></pre
-urso-'s avatar
-urso- committed
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195
>

<div class="computational-element-link computational-element-link-function"
  ><p
    ><a href="api/function_005FCFFI-UTIL_003A_003ACBUFFER-GAIN.html" name="function_005FCFFI-UTIL_003A_003ACBUFFER-GAIN"
      >Function CBUFFER-GAIN</a
    > </p
  ></div
>

<div class="computational-element-link computational-element-link-function"
  ><p
    ><a href="api/function_005FCFFI-UTIL_003A_003AALLOC-CBUFFER.html" name="function_005FCFFI-UTIL_003A_003AALLOC-CBUFFER"
      >Function ALLOC-CBUFFER</a
    > </p
  ></div
>

<div class="computational-element-link computational-element-link-function"
  ><p
    ><a href="api/function_005FCFFI-UTIL_003A_003AMAKE-CBUFFER-FROM-POINTER.html" name="function_005FCFFI-UTIL_003A_003AMAKE-CBUFFER-FROM-POINTER"
      >Function MAKE-CBUFFER-FROM-POINTER</a
    > </p
  ></div
>

<div class="computational-element-link computational-element-link-function"
  ><p
    ><a href="api/function_005FCFFI-UTIL_003A_003ACBUFFER-EOB-P.html" name="function_005FCFFI-UTIL_003A_003ACBUFFER-EOB-P"
      >Function CBUFFER-EOB-P</a
    > </p
  ></div
>

<div class="computational-element-link computational-element-link-function"
  ><p
    ><a href="api/function_005FCFFI-UTIL_003A_003ACBUFFER-RESIZE.html" name="function_005FCFFI-UTIL_003A_003ACBUFFER-RESIZE"
      >Function CBUFFER-RESIZE</a
    > resizes cbuffer by creating a new one and copying the data along.</p
  ></div
>

<div class="computational-element-link computational-element-link-function"
  ><p
    ><a href="api/function_005FCFFI-UTIL_003A_003ACBUFFER-ENSURE-SIZE.html" name="function_005FCFFI-UTIL_003A_003ACBUFFER-ENSURE-SIZE"
      >Function CBUFFER-ENSURE-SIZE</a
    > </p
  ></div
>

<div class="computational-element-link computational-element-link-function"
  ><p
    ><a href="api/function_005FCFFI-UTIL_003A_003ACBUFFER-ADJUST-MIN-SIZE.html" name="function_005FCFFI-UTIL_003A_003ACBUFFER-ADJUST-MIN-SIZE"
      >Function CBUFFER-ADJUST-MIN-SIZE</a
    > WARNING: size must be smaller then length!</p
  ></div
>

<div class="computational-element-link computational-element-link-function"
  ><p
    ><a href="api/function_005FCFFI-UTIL_003A_003AFREE-CBUFFER-FINAL.html" name="function_005FCFFI-UTIL_003A_003AFREE-CBUFFER-FINAL"
      >Function FREE-CBUFFER-FINAL</a
    > </p
  ></div
>

<div class="computational-element-link computational-element-link-function"
  ><p
    ><a href="api/function_005FCFFI-UTIL_003A_003AFREE-CBUFFER.html" name="function_005FCFFI-UTIL_003A_003AFREE-CBUFFER"
      >Function FREE-CBUFFER</a
    > </p
  ></div
>

<div class="computational-element-link computational-element-link-function"
  ><p
    ><a href="api/function_005FCFFI-UTIL_003A_003ACBUFFER-CHECKBOUNDS.html" name="function_005FCFFI-UTIL_003A_003ACBUFFER-CHECKBOUNDS"
      >Function CBUFFER-CHECKBOUNDS</a
    > </p
  ></div
>

<div class="computational-element-link computational-element-link-function"
  ><p
    ><a href="api/function_005FCFFI-UTIL_003A_003ACBUFFER-BYTE.html" name="function_005FCFFI-UTIL_003A_003ACBUFFER-BYTE"
      >Function CBUFFER-BYTE</a
    > </p
  ></div
>

<div class="computational-element-link computational-element-link-function"
  ><p
    ><a href="api/function_005FCFFI-UTIL_003A_003A_0028SETF_0020CBUFFER-BYTE_0029.html" name="function_005FCFFI-UTIL_003A_003A_0028SETF_0020CBUFFER-BYTE_0029"
      >Function (SETF CBUFFER-BYTE)</a
    > </p
  ></div
>

<div class="computational-element-link computational-element-link-macro"
  ><p
    ><a href="api/macro_005FCFFI-UTIL_003A_003AWITH-CBUFFER.html" name="macro_005FCFFI-UTIL_003A_003AWITH-CBUFFER"
      >Macro WITH-CBUFFER</a
    > </p
  ></div
>
196

-urso-'s avatar
-urso- committed
197 198 199 200 201
</div
      ></div
    ></body
  ></html
>