-
-
Save zpodlovics/917dd235b1c726921d44ba16ade3271f to your computer and use it in GitHub Desktop.
fable2-test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
Object.defineProperty(exports, "__esModule", { | |
value: true | |
}); | |
exports.HeaderEncoder = exports.HeaderDecoder = undefined; | |
exports.LengthModule$$$ofValue = LengthModule$$$ofValue; | |
exports.LengthModule$$$toValue = LengthModule$$$toValue; | |
exports.LengthModule$$$ofBuffer = LengthModule$$$ofBuffer; | |
exports.LengthModule$$$toBuffer = LengthModule$$$toBuffer; | |
exports.VersionModule$$$ofValue = VersionModule$$$ofValue; | |
exports.VersionModule$$$toValue = VersionModule$$$toValue; | |
exports.VersionModule$$$ofBuffer = VersionModule$$$ofBuffer; | |
exports.VersionModule$$$toBuffer = VersionModule$$$toBuffer; | |
exports.HeaderDecoder$$$$002Ector = HeaderDecoder$$$$002Ector; | |
exports.HeaderDecoder$$Wrap$$Z34AFE798 = HeaderDecoder$$Wrap$$Z34AFE798; | |
exports.HeaderDecoder$$get_Length = HeaderDecoder$$get_Length; | |
exports.HeaderDecoder$$GetLength = HeaderDecoder$$GetLength; | |
exports.HeaderDecoder$$get_Version = HeaderDecoder$$get_Version; | |
exports.HeaderDecoder$$GetVersion = HeaderDecoder$$GetVersion; | |
exports.HeaderEncoder$$$$002Ector = HeaderEncoder$$$$002Ector; | |
exports.HeaderEncoder$$Wrap$$Z34AFE798 = HeaderEncoder$$Wrap$$Z34AFE798; | |
exports.HeaderEncoder$$set_Length$$Z6EF82811 = HeaderEncoder$$set_Length$$Z6EF82811; | |
exports.HeaderEncoder$$SetLength$$Z6EF82811 = HeaderEncoder$$SetLength$$Z6EF82811; | |
exports.HeaderEncoder$$set_Version$$Z6EF82811 = HeaderEncoder$$set_Version$$Z6EF82811; | |
exports.HeaderEncoder$$SetVersion$$Z6EF82811 = HeaderEncoder$$SetVersion$$Z6EF82811; | |
var _Types = require("./fable-core.2.0.0-beta-001/Types"); | |
function LengthModule$$$ofValue(value) { | |
return value; | |
} | |
function LengthModule$$$toValue(x) { | |
return x; | |
} | |
function LengthModule$$$ofBuffer(value$$1) { | |
return value$$1; | |
} | |
function LengthModule$$$toBuffer(x$$1) { | |
return x$$1; | |
} | |
function VersionModule$$$ofValue(value$$2) { | |
return value$$2; | |
} | |
function VersionModule$$$toValue(x$$2) { | |
return x$$2; | |
} | |
function VersionModule$$$ofBuffer(value$$3) { | |
return value$$3; | |
} | |
function VersionModule$$$toBuffer(x$$3) { | |
return x$$3; | |
} | |
const HeaderDecoder = exports.HeaderDecoder = (0, _Types.declare)(function HeaderDecoder() { | |
const $this$$1 = this; | |
$this$$1._buffer = null; | |
$this$$1._offset = 0; | |
}); | |
function HeaderDecoder$$$$002Ector() { | |
return this != null ? HeaderDecoder.call(this) : new HeaderDecoder(); | |
} | |
function HeaderDecoder$$Wrap$$Z34AFE798(this$, buffer, offset) { | |
this$._buffer = buffer; | |
this$._offset = offset; | |
} | |
function HeaderDecoder$$get_Length(this$$$1) { | |
return LengthModule$$$ofBuffer(this$$$1._buffer.ReadUInt16(this$$$1._offset + 0)); | |
} | |
function HeaderDecoder$$GetLength(this$$$2) { | |
return LengthModule$$$ofBuffer(this$$$2._buffer.ReadUInt16(this$$$2._offset + 0)); | |
} | |
function HeaderDecoder$$get_Version(this$$$3) { | |
return VersionModule$$$ofBuffer(this$$$3._buffer.ReadUInt16(this$$$3._offset + 2)); | |
} | |
function HeaderDecoder$$GetVersion(this$$$4) { | |
return VersionModule$$$ofBuffer(this$$$4._buffer.ReadUInt16(this$$$4._offset + 2)); | |
} | |
const HeaderEncoder = exports.HeaderEncoder = (0, _Types.declare)(function HeaderEncoder() { | |
const $this$$2 = this; | |
$this$$2._buffer = null; | |
$this$$2._offset = 0; | |
}); | |
function HeaderEncoder$$$$002Ector() { | |
return this != null ? HeaderEncoder.call(this) : new HeaderEncoder(); | |
} | |
function HeaderEncoder$$Wrap$$Z34AFE798(this$$$5, buffer$$1, offset$$1) { | |
this$$$5._buffer = buffer$$1; | |
this$$$5._offset = offset$$1; | |
} | |
function HeaderEncoder$$set_Length$$Z6EF82811(this$$$6, value$$4) { | |
this$$$6._buffer.WriteUInt16(this$$$6._offset + 0, value$$4); | |
} | |
function HeaderEncoder$$SetLength$$Z6EF82811(this$$$7, value$$5) { | |
this$$$7._buffer.WriteUInt16(this$$$7._offset + 0, value$$5); | |
return this$$$7; | |
} | |
function HeaderEncoder$$set_Version$$Z6EF82811(this$$$8, value$$6) { | |
this$$$8._buffer.WriteUInt16(this$$$8._offset + 2, value$$6); | |
} | |
function HeaderEncoder$$SetVersion$$Z6EF82811(this$$$9, value$$7) { | |
this$$$9._buffer.WriteUInt16(this$$$9._offset + 2, value$$7); | |
return this$$$9; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment