f646b924357689419072fddf402c3ad3c10cd095.sol 535 B

123456789101112131415161718192021
  1. contract foo {
  2. function test1() public returns (bytes) {
  3. bytes bs = new bytes(12);
  4. bs.writeInt32LE(-0x41424344, 0);
  5. bs.writeUint64LE(0x0102030405060708, 4);
  6. return bs;
  7. }
  8. function test2() public returns (bytes) {
  9. bytes bs = new bytes(34);
  10. bs.writeUint16LE(0x4142, 0);
  11. bs.writeAddress(address(this), 2);
  12. return bs;
  13. }
  14. function test3() public returns (bytes) {
  15. bytes bs = new bytes(9);
  16. bs.writeUint64LE(1, 2);
  17. return bs;
  18. }
  19. }