<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                # Table->column [TOC] 內存表增加一列 ~~~ bool Table->column(string $name, int $type, int $size = 0); ~~~ * `$name`指定字段的名稱 * `$type`指定字段類型,支持`3`種類型,`Table::TYPE_INT`,`Table::TYPE_FLOAT`,`Table::TYPE_STRING` * `$size`指定字符串字段的最大長度,單位為字節。字符串類型的字段必須指定`$size` ## 類型 * `Table::TYPE_INT`默認為`4`個字節,可以設置`1,2,4,8`一共`4`種長度 * `Table::TYPE_STRING`設置后,設置的字符串不能超過此長度 * `Table::TYPE_FLOAT`會占用`8`個字節的內存 ## 整型溢出 由于`Swoole`底層使用有符號整型,如果傳入的數值超過最大長度,可能會出現溢出。因此整數類型安全的值范圍是: * 1byte(int8):-127 ~ 127 * 2byte(int16):-32767 ~ 32767 * 4byte(int32):-2147483647 ~ 2147483647 * 8byte(int64):不會溢出 > 非`x86`環境需要內存對齊 ~~~ /* Linux raspberrypi 4.4.34-v7+ #930 SMP Wed Nov 23 15:20:41 GMT 2016 armv7l GNU/Linux gcc version 4.9.2 (Raspbian 4.9.2-10) model name : ARMv7 Processor rev 4 (v7l) BogoMIPS : 76.80 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xd03 CPU revision : 4 */ //bad use Swoole\Table; $table = new \Swoole\Table(8); $table->column('data',Table::TYPE_STRING, 1); $table->create(); $table->set(1,[]); var_dump($table->get(1)); //result: Bus error //good use Swoole\Table; $table = new \Swoole\Table(8); $table->column('data',Table::TYPE_STRING, 1); $table->column('pad',Table::TYPE_STRING, 1); $table->create(); $table->set(1,[]); var_dump($table->get(1)); /* result array(2) { ["data"]=> string(0) "" ["pad"]=> string(0) "" } */ ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看