BinaryObjectReader.js 629 B

12345678910111213141516171819
  1. function BinaryObjectReader() {
  2. Object.defineProperties(this, {
  3. 'success': { enumerable: true, configurable: true, get: BinaryObjectReader.prototype.__get_success, set: BinaryObjectReader.prototype.__set_success}
  4. })
  5. }
  6. BinaryObjectReader.prototype.__get_success = function() {
  7. return Polycode.BinaryObjectReader__get_success(this.__ptr)
  8. }
  9. BinaryObjectReader.prototype.__set_success = function(val) {
  10. Polycode.BinaryObjectReader__set_success(this.__ptr, val)
  11. }
  12. Duktape.fin(BinaryObjectReader.prototype, function (x) {
  13. if (x === BinaryObjectReader.prototype) {
  14. return;
  15. }
  16. Polycode.BinaryObjectReader__delete(x.__ptr)
  17. })