| Index: mojo/public/js/bindings/codec.js
|
| diff --git a/mojo/public/js/bindings/codec.js b/mojo/public/js/bindings/codec.js
|
| index 243488b37a2db28a914d6567d6cfecff59e11a9d..f3d4b68ae5f9c447b150ea659cba6a0c0a062d9e 100644
|
| --- a/mojo/public/js/bindings/codec.js
|
| +++ b/mojo/public/js/bindings/codec.js
|
| @@ -111,6 +111,12 @@ define("mojo/public/js/bindings/codec", function() {
|
| return result;
|
| };
|
|
|
| + Decoder.prototype.read16 = function() {
|
| + var result = load16(this.memory, this.next);
|
| + this.next += 2;
|
| + return result;
|
| + };
|
| +
|
| Decoder.prototype.read32 = function() {
|
| var result = this.viewU32[this.next / this.viewU32.BYTES_PER_ELEMENT];
|
| this.next += this.viewU32.BYTES_PER_ELEMENT;
|
| @@ -203,6 +209,11 @@ define("mojo/public/js/bindings/codec", function() {
|
| this.next += 1;
|
| };
|
|
|
| + Encoder.prototype.write16 = function(val) {
|
| + store16(this.buffer.memory, this.next, val);
|
| + this.next += 2;
|
| + };
|
| +
|
| Encoder.prototype.write32 = function(val) {
|
| store32(this.buffer.memory, this.next, val);
|
| this.next += 4;
|
|
|