OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 define("mojo/public/bindings/js/codec", function() { | 5 define("mojo/public/js/bindings/codec", function() { |
6 | 6 |
7 // Memory ------------------------------------------------------------------- | 7 // Memory ------------------------------------------------------------------- |
8 | 8 |
9 function store8(memory, pointer, val) { | 9 function store8(memory, pointer, val) { |
10 memory[pointer] = val; | 10 memory[pointer] = val; |
11 } | 11 } |
12 | 12 |
13 function store16(memory, pointer, val) { | 13 function store16(memory, pointer, val) { |
14 memory[pointer + 0] = val >> 0; | 14 memory[pointer + 0] = val >> 0; |
15 memory[pointer + 1] = val >> 8; | 15 memory[pointer + 1] = val >> 8; |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 exports.kMessageIsResponse = kMessageIsResponse; | 496 exports.kMessageIsResponse = kMessageIsResponse; |
497 exports.Uint8 = Uint8; | 497 exports.Uint8 = Uint8; |
498 exports.Uint16 = Uint16; | 498 exports.Uint16 = Uint16; |
499 exports.Uint32 = Uint32; | 499 exports.Uint32 = Uint32; |
500 exports.Uint64 = Uint64; | 500 exports.Uint64 = Uint64; |
501 exports.PointerTo = PointerTo; | 501 exports.PointerTo = PointerTo; |
502 exports.ArrayOf = ArrayOf; | 502 exports.ArrayOf = ArrayOf; |
503 exports.Handle = Handle; | 503 exports.Handle = Handle; |
504 return exports; | 504 return exports; |
505 }); | 505 }); |
OLD | NEW |