ArrayBuffer.uts 18.9 KB
Newer Older
M
mahaifeng 已提交
1
import { describe, test, expect, Result } from './tests.uts'
M
mahaifeng 已提交
2 3 4 5 6 7 8 9 10 11
import { TDataView } from './TDataView.uts'
import { TFloat32Array } from './TFloat32Array.uts'
import { TFloat64Array } from './TFloat64Array.uts'
import { TInt8Array } from './TInt8Array.uts'
import { TInt16Array } from './TInt16Array.uts'
import { TInt32Array } from './TInt32Array.uts'
import { TUint8Array } from './TUint8Array.uts'
import { TUint8ClampedArray } from './TUint8ClampedArray.uts'
import { TUint16Array } from './TUint16Array.uts'
import { TUint32Array } from './TUint32Array.uts'
M
mahaifeng 已提交
12 13 14 15 16 17 18 19 20 21 22 23 24 25

const tDataView = new TDataView();
const float32 = new TFloat32Array();
const float64 = new TFloat64Array()
const int8 = new TInt8Array()
const int32 = new TInt32Array()
const uint8 = new TUint8Array()
const uint8Clamped = new TUint8ClampedArray()
const uint16 = new TUint16Array()
const uint32 = new TUint32Array()
const int16 = new TInt16Array()

export function testArrayBuffer() : Result {
  return describe("ArrayBuffer", () => {
M
mahaifeng 已提交
26 27
    // #ifndef APP-IOS

M
mahaifeng 已提交
28 29 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
    //dataview start
    test('dataview_constructor', () => {
      tDataView.setConstructor()
    })
    test('dataview_setInt8', () => {
      tDataView.setInt8()
    })
    test('dataview_setFloat32', () => {
      tDataView.setFloat32()
    })
    test('dataview_setFloat64', () => {
      tDataView.setFloat64()
    })
    test('dataview_setInt16', () => {
      tDataView.setInt16()
    })
    test('dataview_setInt32', () => {
      tDataView.setInt32()
    })
    test('dataview_setUint16', () => {
      tDataView.setUint16()
    })
    test('dataview_setUint32', () => {
      tDataView.setUint32()
    })
    test('dataview_setUint8', () => {
      tDataView.setUint8()
    })
    test('doTestDataViewBigEndian', () => {
      tDataView.doTestDataViewBigEndian()
    })
    test('doTestDataViewLittleEndian', () => {
      tDataView.doTestDataViewLittleEndian()
    })
    test('doTestTypedArrayBigEndian', () => {
      tDataView.doTestTypedArrayBigEndian()
    })
    test('doTestTypedArrayLittleEndian', () => {
      tDataView.doTestTypedArrayLittleEndian()
    })
    test('doTestDataViewFloats', () => {
      tDataView.doTestDataViewFloats()
    })
    //dataview end
M
mahaifeng 已提交
72 73 74 75 76
    //typedarray start
    test('typedarray_testConstructor', () => {
      var arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16];
      var int32 = new Int32Array(arr);
      expect(int32.toString()).toEqual("1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16");
M
mahaifeng 已提交
77

M
mahaifeng 已提交
78 79 80 81 82 83 84 85 86 87 88 89 90 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
      var buffer = new ArrayBuffer(64);

      int32 = new Int32Array(buffer);
      expect(int32.byteLength).toEqual(64);

      var length = 1024;
      var arrUnit8 = new Uint8Array(length);
      for (var i = 0; i < length; i++) {
        arrUnit8[i] = i;
      }
      var uint8 = new Uint8Array(arrUnit8);
      expect(uint8.byteLength).toEqual(1024);

      length = 1024;
      uint8 = new Uint8Array(length);
      for (var i = 0; i < length; i++) {
        uint8[i] = i;
      }

      var float64 = new Float64Array(uint8);
      expect(float64.length).toEqual(1024);

      int32 = new Int32Array(16);
      expect(int32.length).toEqual(16);
    })
    test('typedarray_from_different_type', () => {
      const length = 16;


      const dest_arrays = [
        new Uint8Array(length),
        new Int8Array(length),
        new Uint16Array(length),
        new Int16Array(length),
        new Uint32Array(length),
        new Int32Array(length),
        new Float32Array(length),
        new Float64Array(length),
        new Uint8ClampedArray(length)
      ];

      let uint8_array = new Uint8Array(length);
      let int32_array = new Int32Array(length);
      let float32_array = new Float32Array(length);
      let float64_array = new Float64Array(length);
      for (let i = 0; i < length; i++) {
        uint8_array[i] = i;
        int32_array[i] = i;
        float32_array[i] = i;
        float64_array[i] = i;
      }
      for (let i = 0; i < dest_arrays.length; i++) {
        var typed_dest = dest_arrays[i]
        typed_dest.set(uint8_array)
        expect(typed_dest.length).toEqual(16)
        typed_dest.set(int32_array)
        expect(typed_dest.length).toEqual(16)
        typed_dest.set(float32_array)
        expect(typed_dest.length).toEqual(16)
        typed_dest.set(float64_array)
        expect(typed_dest.length).toEqual(16)
      }
    })
    //typedarray end
M
mahaifeng 已提交
142 143 144 145 146 147 148
    //float32array start
    test('float32_testConstructor', () => {
      float32.testConstructor()
    })
    test('float32_testSet', () => {
      float32.testSet()
    })
M
mahaifeng 已提交
149 150 151
    test('float32_testSome', () => {
      float32.testSome()
    })
M
mahaifeng 已提交
152 153 154
    test('float32_testFrom', () => {
      float32.from()
    })
M
mahaifeng 已提交
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 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288
    test('float32_testCopyWith', () => {
      float32.testCopyWith()
    })
    test('float32_testEvery', () => {
      float32.testEvery()
    })
    test('float32_testFill', () => {
      float32.testFill()
    })
    test('float32_testFilter', () => {
      float32.testFilter()
    })
    test('float32_find', () => {
      float32.find()
    })
    test('float32_findIndex', () => {
      float32.findIndex()
    })
    test('float32_foreach', () => {
      float32.foreach()
    })
    test('float32_iterator', () => {
      float32.iterator()
    })
    test('float32_includes', () => {
      float32.includes()
    })
    test('float32_indexOf', () => {
      float32.indexOf()
    })
    test('float32_join', () => {
      float32.join()
    })
    test('float32_keys', () => {
      float32.keys()
    })
    test('float32_map', () => {
      float32.map()
    })
    test('float32_reduce', () => {
      float32.reduce()
    })
    test('float32_reduceRight', () => {
      float32.reduceRight()
    })
    test('float32_reverse', () => {
      float32.reverse()
    })
    test('float32_slice', () => {
      float32.slice()
    })
    test('float32_sort', () => {
      float32.sort()
    })
    test('float32_subarray', () => {
      float32.subarray()
    })
    test('float32_values', () => {
      float32.values()
    })
    test('float32_arrayBufferSlice', () => {
      float32.arrayBufferSlice()
    })
    //float32array end
    //float64array start
    test('float64_testConstructor', () => {
      float64.testConstructor()
    })
    test('float64_testSet', () => {
      float64.testSet()
    })
    test('float64_testCopyWith', () => {
      float64.testCopyWith()
    })
    test('float64_testEvery', () => {
      float64.testEvery()
    })
    test('float64_testFill', () => {
      float64.testFill()
    })
    test('float64_testFilter', () => {
      float64.testFilter()
    })
    test('float64_find', () => {
      float64.find()
    })
    test('float64_findIndex', () => {
      float64.findIndex()
    })
    test('float64_foreach', () => {
      float64.foreach()
    })
    test('float64_iterator', () => {
      float64.iterator()
    })
    test('float64_includes', () => {
      float64.includes()
    })
    test('float64_indexOf', () => {
      float64.indexOf()
    })
    test('float64_join', () => {
      float64.join()
    })
    test('float64_keys', () => {
      float64.keys()
    })
    test('float64_map', () => {
      float64.map()
    })
    test('float64_reduce', () => {
      float64.reduce()
    })
    test('float64_reduceRight', () => {
      float64.reduceRight()
    })
    test('float64_reverse', () => {
      float64.reverse()
    })
    test('float64_slice', () => {
      float64.slice()
    })
    test('float64_sort', () => {
      float64.sort()
    })
    test('float64_subarray', () => {
      float64.subarray()
    })
    test('float64_values', () => {
      float64.values()
    })
    test('float64_arrayBufferSlice', () => {
      float64.arrayBufferSlice()
    })
M
mahaifeng 已提交
289 290 291
    test('float64_testSome', () => {
      float64.testSome()
    })
M
mahaifeng 已提交
292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363

    //float64 end
    //int8 start
    test('int8_testConstructor', () => {
      int8.testConstructor()
    })
    test('int8_testSet', () => {
      int8.testSet()
    })
    test('int8_testCopyWith', () => {
      int8.testCopyWith()
    })
    test('int8_testEvery', () => {
      int8.testEvery()
    })
    test('int8_testFill', () => {
      int8.testFill()
    })
    test('int8_testFilter', () => {
      int8.testFilter()
    })
    test('int8_find', () => {
      int8.find()
    })
    test('int8_findIndex', () => {
      int8.findIndex()
    })
    test('int8_foreach', () => {
      int8.foreach()
    })
    test('int8_iterator', () => {
      int8.iterator()
    })
    test('int8_includes', () => {
      int8.includes()
    })
    test('int8_indexOf', () => {
      int8.indexOf()
    })
    test('int8_join', () => {
      int8.join()
    })
    test('int8_keys', () => {
      int8.keys()
    })
    test('int8_map', () => {
      int8.map()
    })
    test('int8_reduce', () => {
      int8.reduce()
    })
    test('int8_reduceRight', () => {
      int8.reduceRight()
    })
    test('int8_reverse', () => {
      int8.reverse()
    })
    test('int8_slice', () => {
      int8.slice()
    })
    test('int8_sort', () => {
      int8.sort()
    })
    test('int8_subarray', () => {
      int8.subarray()
    })
    test('int8_values', () => {
      int8.values()
    })
    test('int8_arrayBufferSlice', () => {
      int8.arrayBufferSlice()
    })
M
mahaifeng 已提交
364 365 366
    test('int8_testSome', () => {
      int8.testSome()
    })
M
mahaifeng 已提交
367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439

    // //int8 end

    // //int16 start
    test('int16_testConstructor', () => {
      int16.testConstructor()
    })
    test('int16_testSet', () => {
      int16.testSet()
    })
    test('int16_testCopyWith', () => {
      int16.testCopyWith()
    })
    test('int16_testEvery', () => {
      int16.testEvery()
    })
    test('int16_testFill', () => {
      int16.testFill()
    })
    test('int16_testFilter', () => {
      int16.testFilter()
    })
    test('int16_find', () => {
      int16.find()
    })
    test('int16_findIndex', () => {
      int16.findIndex()
    })
    test('int16_foreach', () => {
      int16.foreach()
    })
    test('int16_iterator', () => {
      int16.iterator()
    })
    test('int16_includes', () => {
      int16.includes()
    })
    test('int16_indexOf', () => {
      int16.indexOf()
    })
    test('int16_join', () => {
      int16.join()
    })
    test('int16_keys', () => {
      int16.keys()
    })
    test('int16_map', () => {
      int16.map()
    })
    test('int16_reduce', () => {
      int16.reduce()
    })
    test('int16_reduceRight', () => {
      int16.reduceRight()
    })
    test('int16_reverse', () => {
      int16.reverse()
    })
    test('int16_slice', () => {
      int16.slice()
    })
    test('int16_sort', () => {
      int16.sort()
    })
    test('int16_subarray', () => {
      int16.subarray()
    })
    test('int16_values', () => {
      int16.values()
    })
    test('int16_arrayBufferSlice', () => {
      int16.arrayBufferSlice()
    })
M
mahaifeng 已提交
440 441 442
    test('int16_testSome', () => {
      int16.testSome()
    })
M
mahaifeng 已提交
443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515

    //int16  end

    //int32 start
    test('int32_testConstructor', () => {
      int32.testConstructor()
    })
    test('int32_testSet', () => {
      int32.testSet()
    })
    test('int32_testCopyWith', () => {
      int32.testCopyWith()
    })
    test('int32_testEvery', () => {
      int32.testEvery()
    })
    test('int32_testFill', () => {
      int32.testFill()
    })
    test('int32_testFilter', () => {
      int32.testFilter()
    })
    test('int32_find', () => {
      int32.find()
    })
    test('int32_findIndex', () => {
      int32.findIndex()
    })
    test('int32_foreach', () => {
      int32.foreach()
    })
    test('int32_iterator', () => {
      int32.iterator()
    })
    test('int32_includes', () => {
      int32.includes()
    })
    test('int32_indexOf', () => {
      int32.indexOf()
    })
    test('int32_join', () => {
      int32.join()
    })
    test('int32_keys', () => {
      int32.keys()
    })
    test('int32_map', () => {
      int32.map()
    })
    test('int32_reduce', () => {
      int32.reduce()
    })
    test('int32_reduceRight', () => {
      int32.reduceRight()
    })
    test('int32_reverse', () => {
      int32.reverse()
    })
    test('int32_slice', () => {
      int32.slice()
    })
    test('int32_sort', () => {
      int32.sort()
    })
    test('int32_subarray', () => {
      int32.subarray()
    })
    test('int32_values', () => {
      int32.values()
    })
    test('int32_arrayBufferSlice', () => {
      int32.arrayBufferSlice()
    })
M
mahaifeng 已提交
516 517 518
    test('int32_testSome', () => {
      int32.testSome()
    })
M
mahaifeng 已提交
519 520 521 522 523 524 525

    //int32  end

    //uint8 start
    test('uint8_testConstructor', () => {
      uint8.testConstructor()
    })
M
mahaifeng 已提交
526 527 528
    test('uint8_from', () => {
      uint8.from()
    })
M
mahaifeng 已提交
529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594
    test('uint8_testSet', () => {
      uint8.testSet()
    })
    test('uint8_testCopyWith', () => {
      uint8.testCopyWith()
    })
    test('uint8_testEvery', () => {
      uint8.testEvery()
    })
    test('uint8_testFill', () => {
      uint8.testFill()
    })
    test('uint8_testFilter', () => {
      uint8.testFilter()
    })
    test('uint8_find', () => {
      uint8.find()
    })
    test('uint8_findIndex', () => {
      uint8.findIndex()
    })
    test('uint8_foreach', () => {
      uint8.foreach()
    })
    test('uint8_iterator', () => {
      uint8.iterator()
    })
    test('uint8_includes', () => {
      uint8.includes()
    })
    test('uint8_indexOf', () => {
      uint8.indexOf()
    })
    test('uint8_join', () => {
      uint8.join()
    })
    test('uint8_keys', () => {
      uint8.keys()
    })
    test('uint8_map', () => {
      uint8.map()
    })
    test('uint8_reduce', () => {
      uint8.reduce()
    })
    test('uint8_reduceRight', () => {
      uint8.reduceRight()
    })
    test('uint8_reverse', () => {
      uint8.reverse()
    })
    test('uint8_slice', () => {
      uint8.slice()
    })
    test('uint8_sort', () => {
      uint8.sort()
    })
    test('uint8_subarray', () => {
      uint8.subarray()
    })
    test('uint8_values', () => {
      uint8.values()
    })
    test('uint8_arrayBufferSlice', () => {
      uint8.arrayBufferSlice()
    })
M
mahaifeng 已提交
595 596 597
    test('uint8_testSome', () => {
      uint8.testSome()
    })
M
mahaifeng 已提交
598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670

    //uint8  end

    //uint8Clamped start
    test('uint8Clamped_testConstructor', () => {
      uint8Clamped.testConstructor()
    })
    test('uint8Clamped_testSet', () => {
      uint8Clamped.testSet()
    })
    test('uint8Clamped_testCopyWith', () => {
      uint8Clamped.testCopyWith()
    })
    test('uint8Clamped_testEvery', () => {
      uint8Clamped.testEvery()
    })
    test('uint8Clamped_testFill', () => {
      uint8Clamped.testFill()
    })
    test('uint8Clamped_testFilter', () => {
      uint8Clamped.testFilter()
    })
    test('uint8Clamped_find', () => {
      uint8Clamped.find()
    })
    test('uint8Clamped_findIndex', () => {
      uint8Clamped.findIndex()
    })
    test('uint8Clamped_foreach', () => {
      uint8Clamped.foreach()
    })
    test('uint8Clamped_iterator', () => {
      uint8Clamped.iterator()
    })
    test('uint8Clamped_includes', () => {
      uint8Clamped.includes()
    })
    test('uint8Clamped_indexOf', () => {
      uint8Clamped.indexOf()
    })
    test('uint8Clamped_join', () => {
      uint8Clamped.join()
    })
    test('uint8Clamped_keys', () => {
      uint8Clamped.keys()
    })
    test('uint8Clamped_map', () => {
      uint8Clamped.map()
    })
    test('uint8Clamped_reduce', () => {
      uint8Clamped.reduce()
    })
    test('uint8Clamped_reduceRight', () => {
      uint8Clamped.reduceRight()
    })
    test('uint8Clamped_reverse', () => {
      uint8Clamped.reverse()
    })
    test('uint8Clamped_slice', () => {
      uint8Clamped.slice()
    })
    test('uint8Clamped_sort', () => {
      uint8Clamped.sort()
    })
    test('uint8Clamped_subarray', () => {
      uint8Clamped.subarray()
    })
    test('uint8Clamped_values', () => {
      uint8Clamped.values()
    })
    test('uint8Clamped_arrayBufferSlice', () => {
      uint8Clamped.arrayBufferSlice()
    })
M
mahaifeng 已提交
671 672 673
    test('uint8Clamped_testSome', () => {
      uint8Clamped.testSome()
    })
M
mahaifeng 已提交
674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746

    //uint8Clamped  end

    //uint16 start
    test('uint16_testConstructor', () => {
      uint16.testConstructor()
    })
    test('uint16_testSet', () => {
      uint16.testSet()
    })
    test('uint16_testCopyWith', () => {
      uint16.testCopyWith()
    })
    test('uint16_testEvery', () => {
      uint16.testEvery()
    })
    test('uint16_testFill', () => {
      uint16.testFill()
    })
    test('uint16_testFilter', () => {
      uint16.testFilter()
    })
    test('uint16_find', () => {
      uint16.find()
    })
    test('uint16_findIndex', () => {
      uint16.findIndex()
    })
    test('uint16_foreach', () => {
      uint16.foreach()
    })
    test('uint16_iterator', () => {
      uint16.iterator()
    })
    test('uint16_includes', () => {
      uint16.includes()
    })
    test('uint16_indexOf', () => {
      uint16.indexOf()
    })
    test('uint16_join', () => {
      uint16.join()
    })
    test('uint16_keys', () => {
      uint16.keys()
    })
    test('uint16_map', () => {
      uint16.map()
    })
    test('uint16_reduce', () => {
      uint16.reduce()
    })
    test('uint16_reduceRight', () => {
      uint16.reduceRight()
    })
    test('uint16_reverse', () => {
      uint16.reverse()
    })
    test('uint16_slice', () => {
      uint16.slice()
    })
    test('uint16_sort', () => {
      uint16.sort()
    })
    test('uint16_subarray', () => {
      uint16.subarray()
    })
    test('uint16_values', () => {
      uint16.values()
    })
    test('uint16_arrayBufferSlice', () => {
      uint16.arrayBufferSlice()
    })
M
mahaifeng 已提交
747 748 749
    test('uint16_testSome', () => {
      uint16.testSome()
    })
M
mahaifeng 已提交
750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822

    //uint16  end

    //uint32 start
    test('uint32_testConstructor', () => {
      uint32.testConstructor()
    })
    test('uint32_testSet', () => {
      uint32.testSet()
    })
    test('uint32_testCopyWith', () => {
      uint32.testCopyWith()
    })
    test('uint32_testEvery', () => {
      uint32.testEvery()
    })
    test('uint32_testFill', () => {
      uint32.testFill()
    })
    test('uint32_testFilter', () => {
      uint32.testFilter()
    })
    test('uint32_find', () => {
      uint32.find()
    })
    test('uint32_findIndex', () => {
      uint32.findIndex()
    })
    test('uint32_foreach', () => {
      uint32.foreach()
    })
    test('uint32_iterator', () => {
      uint32.iterator()
    })
    test('uint32_includes', () => {
      uint32.includes()
    })
    test('uint32_indexOf', () => {
      uint32.indexOf()
    })
    test('uint32_join', () => {
      uint32.join()
    })
    test('uint32_keys', () => {
      uint32.keys()
    })
    test('uint32_map', () => {
      uint32.map()
    })
    test('uint32_reduce', () => {
      uint32.reduce()
    })
    test('uint32_reduceRight', () => {
      uint32.reduceRight()
    })
    test('uint32_reverse', () => {
      uint32.reverse()
    })
    test('uint32_slice', () => {
      uint32.slice()
    })
    test('uint32_sort', () => {
      uint32.sort()
    })
    test('uint32_subarray', () => {
      uint32.subarray()
    })
    test('uint32_values', () => {
      uint32.values()
    })
    test('uint32_arrayBufferSlice', () => {
      uint32.arrayBufferSlice()
    })
M
mahaifeng 已提交
823 824 825
    test('uint32_testSome', () => {
      uint32.testSome()
    })
M
mahaifeng 已提交
826

M
mahaifeng 已提交
827
    //uint32  end
M
mahaifeng 已提交
828
    // #endif
M
mahaifeng 已提交
829 830
  })
}