BinaryObjectReader.js 717 B

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