bfg-common 1.1.106 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/minify.js +126 -51
- package/package.json +4 -2
- package/plugins/spice-console/spice.console.ts +3 -113
- package/public/spice-console-minify/run.min.js +68 -96
- package/public/spice-console-minify/application/WorkerProcess.min.js +0 -1
- package/public/spice-console-minify/application/WorkerProcess_back.min.js +0 -1
- package/public/spice-console-minify/application/WorkerProcess_meta.min.js +0 -1
- package/public/spice-console-minify/application/WorkerProcess_reverse.min.js +0 -1
- package/public/spice-console-minify/application/agent.min.js +0 -1
- package/public/spice-console-minify/application/application.min.js +0 -1
- package/public/spice-console-minify/application/checkActivity.min.js +0 -1
- package/public/spice-console-minify/application/clientgui.min.js +0 -1
- package/public/spice-console-minify/application/clipboard/clipboarddataparser.min.js +0 -1
- package/public/spice-console-minify/application/clipboard/local/localClipboard.min.js +0 -1
- package/public/spice-console-minify/application/clipboard.min.js +0 -1
- package/public/spice-console-minify/application/codec.min.js +0 -1
- package/public/spice-console-minify/application/imagecache.min.js +0 -1
- package/public/spice-console-minify/application/inputmanager.min.js +0 -1
- package/public/spice-console-minify/application/packetfactory.min.js +0 -1
- package/public/spice-console-minify/application/packetfilter.min.js +0 -1
- package/public/spice-console-minify/application/packetprocess.min.js +0 -1
- package/public/spice-console-minify/application/rasteroperation.min.js +0 -1
- package/public/spice-console-minify/application/spiceconnection.min.js +0 -1
- package/public/spice-console-minify/application/stream.min.js +0 -1
- package/public/spice-console-minify/application/virtualmouse.min.js +0 -1
- package/public/spice-console-minify/keymaps/keyevent.min.js +0 -1
- package/public/spice-console-minify/keymaps/keymap.min.js +0 -1
- package/public/spice-console-minify/keymaps/keymapes.min.js +0 -1
- package/public/spice-console-minify/keymaps/keymapesObj.min.js +0 -1
- package/public/spice-console-minify/keymaps/keymapus.min.js +0 -1
- package/public/spice-console-minify/keymaps/scanCodeObjModifier.min.js +0 -1
- package/public/spice-console-minify/keymaps/scanCodeObjProvider.min.js +0 -1
- package/public/spice-console-minify/lib/AsyncConsumer.min.js +0 -1
- package/public/spice-console-minify/lib/AsyncWorker.min.js +0 -1
- package/public/spice-console-minify/lib/CollisionDetector.min.js +0 -1
- package/public/spice-console-minify/lib/DataLogger.min.js +0 -1
- package/public/spice-console-minify/lib/GenericObjectPool.min.js +0 -1
- package/public/spice-console-minify/lib/GlobalPool.min.js +0 -1
- package/public/spice-console-minify/lib/ImageUncompressor.min.js +0 -1
- package/public/spice-console-minify/lib/IntegrationBenchmark.min.js +0 -1
- package/public/spice-console-minify/lib/PacketWorkerIdentifier.min.js +0 -1
- package/public/spice-console-minify/lib/SyncAsyncHandler.min.js +0 -1
- package/public/spice-console-minify/lib/base64.min.js +0 -1
- package/public/spice-console-minify/lib/biginteger.min.js +0 -1
- package/public/spice-console-minify/lib/bowser.min.js +0 -1
- package/public/spice-console-minify/lib/decoder/dixie.min.js +0 -5
- package/public/spice-console-minify/lib/decoder/jmuxer.min.js +0 -1
- package/public/spice-console-minify/lib/displayRouter.min.js +0 -1
- package/public/spice-console-minify/lib/encrypt.min.js +0 -1
- package/public/spice-console-minify/lib/flipper.min.js +0 -1
- package/public/spice-console-minify/lib/graphic.min.js +0 -1
- package/public/spice-console-minify/lib/graphicdebug.min.js +0 -1
- package/public/spice-console-minify/lib/images/bitmap.min.js +0 -1
- package/public/spice-console-minify/lib/images/jsquic_family.min.js +0 -1
- package/public/spice-console-minify/lib/images/jsquic_rgba.min.js +0 -1
- package/public/spice-console-minify/lib/images/jsquic_uncompress.min.js +0 -1
- package/public/spice-console-minify/lib/images/lz.min.js +0 -1
- package/public/spice-console-minify/lib/images/png.min.js +0 -1
- package/public/spice-console-minify/lib/jgestures.min.js +0 -25
- package/public/spice-console-minify/lib/jquery-2.0.3.min.js +0 -25
- package/public/spice-console-minify/lib/jquery-mousewheel.min.js +0 -12
- package/public/spice-console-minify/lib/jquery-visibility.min.js +0 -2
- package/public/spice-console-minify/lib/jsbn.min.js +0 -1
- package/public/spice-console-minify/lib/jsbn2.min.js +0 -1
- package/public/spice-console-minify/lib/lodash.4.0.0.min.js +0 -6
- package/public/spice-console-minify/lib/modernizr.min.js +0 -1
- package/public/spice-console-minify/lib/pixastic.min.js +0 -1
- package/public/spice-console-minify/lib/prettyprint.min.js +0 -1
- package/public/spice-console-minify/lib/prng4.min.js +0 -1
- package/public/spice-console-minify/lib/queue.min.js +0 -1
- package/public/spice-console-minify/lib/rasterEngine.min.js +0 -1
- package/public/spice-console-minify/lib/rng.min.js +0 -1
- package/public/spice-console-minify/lib/runqueue.min.js +0 -1
- package/public/spice-console-minify/lib/sha1.min.js +0 -1
- package/public/spice-console-minify/lib/stuckkeyshandler.min.js +0 -1
- package/public/spice-console-minify/lib/timelapsedetector.min.js +0 -1
- package/public/spice-console-minify/lib/utils.min.js +0 -1
- package/public/spice-console-minify/lib/virtualjoystick.min.js +0 -1
- package/public/spice-console-minify/network/busconnection.min.js +0 -1
- package/public/spice-console-minify/network/clusternodechooser.min.js +0 -1
- package/public/spice-console-minify/network/connectioncontrol.min.js +0 -1
- package/public/spice-console-minify/network/packetcontroller.min.js +0 -1
- package/public/spice-console-minify/network/packetextractor.min.js +0 -1
- package/public/spice-console-minify/network/packetlinkfactory.min.js +0 -1
- package/public/spice-console-minify/network/packetreassembler.min.js +0 -1
- package/public/spice-console-minify/network/reassemblerfactory.min.js +0 -1
- package/public/spice-console-minify/network/sizedefiner.min.js +0 -1
- package/public/spice-console-minify/network/socket.min.js +0 -1
- package/public/spice-console-minify/network/socketqueue.min.js +0 -1
- package/public/spice-console-minify/network/spicechannel.min.js +0 -1
- package/public/spice-console-minify/network/websocketwrapper.min.js +0 -1
- package/public/spice-console-minify/process/busprocess.min.js +0 -1
- package/public/spice-console-minify/process/cursorprocess.min.js +0 -1
- package/public/spice-console-minify/process/displaypreprocess.min.js +0 -1
- package/public/spice-console-minify/process/displayprocess.min.js +0 -1
- package/public/spice-console-minify/process/inputprocess.min.js +0 -1
- package/public/spice-console-minify/process/mainprocess.min.js +0 -1
- package/public/spice-console-minify/process/playbackprocess.min.js +0 -1
- package/public/spice-console-minify/spiceobjects/generated/protocol.min.js +0 -1
- package/public/spice-console-minify/spiceobjects/spiceobjects.min.js +0 -1
- package/public/spice-console-minify/swcanvas/swcanvas.min.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
wdi.SpicePubkeyType={SPICE_PUBKEY_TYPE_INVALID:0,SPICE_PUBKEY_TYPE_RSA:1,SPICE_PUBKEY_TYPE_RSA2:2,SPICE_PUBKEY_TYPE_DSA:3,SPICE_PUBKEY_TYPE_DSA1:4,SPICE_PUBKEY_TYPE_DSA2:5,SPICE_PUBKEY_TYPE_DSA3:6,SPICE_PUBKEY_TYPE_DSA4:7,SPICE_PUBKEY_TYPE_DH:8,SPICE_PUBKEY_TYPE_EC:9,SPICE_PUBKEY_TYPE_ENUM_END:10},wdi.SpiceWarnCode={SPICE_WARN_GENERAL:0,SPICE_WARN_CODE_ENUM_END:1},wdi.SpiceLineFlags={SPICE_LINE_FLAGS_START_WITH_GAP:4,SPICE_LINE_FLAGS_STYLED:8,SPICE_LINE_FLAGS_MASK:12},wdi.SpiceNotifyVisibility={SPICE_NOTIFY_VISIBILITY_LOW:0,SPICE_NOTIFY_VISIBILITY_MEDIUM:1,SPICE_NOTIFY_VISIBILITY_HIGH:2,SPICE_NOTIFY_VISIBILITY_ENUM_END:3},wdi.SpiceVars={SPICE_MSGC_ACK_SYNC:1,SPICE_MSGC_ACK:2,SPICE_MSGC_PONG:3,SPICE_MSGC_MIGRATE_FLUSH_MARK:4,SPICE_MSGC_MIGRATE_DATA:5,SPICE_MSGC_DISCONNECTING:6,SPICE_MSGC_DISPLAY_PREFERRED_VIDEO_CODEC_TYPE:105,SPICE_MSGC_DISPLAY_INIT:101,SPICE_MSGC_END_DISPLAY:102,SPICE_CHANNEL_MAIN:1,SPICE_CHANNEL_DISPLAY:2,SPICE_CHANNEL_INPUTS:3,SPICE_CHANNEL_CURSOR:4,SPICE_CHANNEL_PLAYBACK:5,SPICE_CHANNEL_RECORD:6,SPICE_CHANNEL_TUNNEL:7,SPICE_CHANNEL_SMARTCARD:8,SPICE_CHANNEL_USBREDIR:9,SPICE_END_CHANNEL:10,SPICE_MSG_MIGRATE:1,SPICE_MSG_MIGRATE_DATA:2,SPICE_MSG_SET_ACK:3,SPICE_MSG_PING:4,SPICE_MSG_WAIT_FOR_CHANNELS:5,SPICE_MSG_DISCONNECTING:6,SPICE_MSG_NOTIFY:7,SPICE_MSG_LIST:8,SPICE_MSGC_MAIN_CLIENT_INFO:101,SPICE_MSGC_MAIN_MIGRATE_CONNECTED:102,SPICE_MSGC_MAIN_MIGRATE_CONNECT_ERROR:103,SPICE_MSGC_MAIN_ATTACH_CHANNELS:104,SPICE_MSGC_MAIN_MOUSE_MODE_REQUEST:105,SPICE_MSGC_MAIN_AGENT_START:106,SPICE_MSGC_MAIN_AGENT_DATA:107,SPICE_MSGC_MAIN_AGENT_TOKEN:108,SPICE_MSGC_MAIN_MIGRATE_END:109,SPICE_MSGC_END_MAIN:110,SPICE_MSG_DISPLAY_MODE:101,SPICE_MSG_DISPLAY_MARK:102,SPICE_MSG_DISPLAY_RESET:103,SPICE_MSG_DISPLAY_COPY_BITS:104,SPICE_MSG_DISPLAY_INVAL_LIST:105,SPICE_MSG_DISPLAY_INVAL_ALL_PIXMAPS:106,SPICE_MSG_DISPLAY_INVAL_PALETTE:107,SPICE_MSG_DISPLAY_INVAL_ALL_PALETTES:108,SPICE_MSG_DISPLAY_STREAM_CREATE:122,SPICE_MSG_DISPLAY_STREAM_DATA:123,SPICE_MSG_DISPLAY_STREAM_CLIP:124,SPICE_MSG_DISPLAY_STREAM_DESTROY:125,SPICE_MSG_DISPLAY_STREAM_DESTROY_ALL:126,SPICE_MSG_DISPLAY_STREAM_DATA_SIZED:316,SPICE_MSG_DISPLAY_STREAM_ACTIVATE_REPORT:319,SPICE_MSG_DISPLAY_DRAW_FILL:302,SPICE_MSG_DISPLAY_DRAW_OPAQUE:303,SPICE_MSG_DISPLAY_DRAW_COPY:304,SPICE_MSG_DISPLAY_DRAW_BLEND:305,SPICE_MSG_DISPLAY_DRAW_BLACKNESS:306,SPICE_MSG_DISPLAY_DRAW_WHITENESS:307,SPICE_MSG_DISPLAY_DRAW_INVERS:308,SPICE_MSG_DISPLAY_DRAW_ROP3:309,SPICE_MSG_DISPLAY_DRAW_STROKE:310,SPICE_MSG_DISPLAY_DRAW_TEXT:311,SPICE_MSG_DISPLAY_DRAW_TRANSPARENT:312,SPICE_MSG_DISPLAY_DRAW_ALPHA_BLEND:313,SPICE_MSG_DISPLAY_SURFACE_CREATE:314,SPICE_MSG_DISPLAY_SURFACE_DESTROY:315,SPICE_MSG_END_DISPLAY:316,SPICE_MSG_INPUTS_INIT:101,SPICE_MSG_INPUTS_KEY_MODIFIERS:102,SPICE_MSG_INPUTS_MOUSE_MOTION_ACK:111,SPICE_MSG_END_INPUTS:112,SPICE_MSGC_INPUTS_KEY_DOWN:101,SPICE_MSGC_INPUTS_KEY_UP:102,SPICE_MSGC_INPUTS_KEY_MODIFIERS:103,SPICE_MSGC_INPUTS_MOUSE_MOTION:111,SPICE_MSGC_INPUTS_MOUSE_POSITION:112,SPICE_MSGC_INPUTS_MOUSE_PRESS:113,SPICE_MSGC_INPUTS_MOUSE_RELEASE:114,SPICE_MSGC_END_INPUTS:115,SPICE_MSG_CURSOR_INIT:101,SPICE_MSG_CURSOR_RESET:102,SPICE_MSG_CURSOR_SET:103,SPICE_MSG_CURSOR_MOVE:104,SPICE_MSG_CURSOR_HIDE:105,SPICE_MSG_CURSOR_TRAIL:106,SPICE_MSG_CURSOR_INVAL_ONE:107,SPICE_MSG_CURSOR_INVAL_ALL:108,SPICE_MSG_END_CURSOR:109,SPICE_MSG_RECORD_START:101,SPICE_MSG_RECORD_STOP:102,SPICE_MSG_RECORD_VOLUME:103,SPICE_MSG_RECORD_MUTE:104,SPICE_MSG_END_RECORD:105,SPICE_MSGC_SMARTCARD_DATA:101,SPICE_MSGC_END_SMARTCARD:102,SPICE_MSGC_SPICEVMC_DATA:101,SPICE_MSGC_END_SPICEVMC:102,SPICE_MSG_MAIN_MIGRATE_BEGIN:101,SPICE_MSG_MAIN_MIGRATE_CANCEL:102,SPICE_MSG_MAIN_INIT:103,SPICE_MSG_MAIN_CHANNELS_LIST:104,SPICE_MSG_MAIN_MOUSE_MODE:105,SPICE_MSG_MAIN_MULTI_MEDIA_TIME:106,SPICE_MSG_MAIN_AGENT_CONNECTED:107,SPICE_MSG_MAIN_AGENT_DISCONNECTED:108,SPICE_MSG_MAIN_AGENT_DATA:109,SPICE_MSG_MAIN_AGENT_TOKEN:110,SPICE_MSG_MAIN_MIGRATE_SWITCH_HOST:111,SPICE_MSG_MAIN_MIGRATE_END:112,SPICE_MSG_END_MAIN:113,SPICE_MSG_PLAYBACK_DATA:101,SPICE_MSG_PLAYBACK_MODE:102,SPICE_MSG_PLAYBACK_START:103,SPICE_MSG_PLAYBACK_STOP:104,SPICE_MSG_PLAYBACK_VOLUME:105,SPICE_MSG_PLAYBACK_MUTE:106,SPICE_MSG_END_PLAYBACK:107,SPICE_MSGC_RECORD_DATA:101,SPICE_MSGC_RECORD_MODE:102,SPICE_MSGC_RECORD_START_MARK:103,SPICE_MSGC_END_RECORD:104,SPICE_MSG_TUNNEL_INIT:101,SPICE_MSG_TUNNEL_SERVICE_IP_MAP:102,SPICE_MSG_TUNNEL_SOCKET_OPEN:103,SPICE_MSG_TUNNEL_SOCKET_FIN:104,SPICE_MSG_TUNNEL_SOCKET_CLOSE:105,SPICE_MSG_TUNNEL_SOCKET_DATA:106,SPICE_MSG_TUNNEL_SOCKET_CLOSED_ACK:107,SPICE_MSG_TUNNEL_SOCKET_TOKEN:108,SPICE_MSG_END_TUNNEL:109,SPICE_MSGC_TUNNEL_SERVICE_ADD:101,SPICE_MSGC_TUNNEL_SERVICE_REMOVE:102,SPICE_MSGC_TUNNEL_SOCKET_OPEN_ACK:103,SPICE_MSGC_TUNNEL_SOCKET_OPEN_NACK:104,SPICE_MSGC_TUNNEL_SOCKET_FIN:105,SPICE_MSGC_TUNNEL_SOCKET_CLOSED:106,SPICE_MSGC_TUNNEL_SOCKET_CLOSED_ACK:107,SPICE_MSGC_TUNNEL_SOCKET_DATA:108,SPICE_MSGC_TUNNEL_SOCKET_TOKEN:109,SPICE_MSGC_END_TUNNEL:110,SPICE_MSG_SMARTCARD_DATA:101,SPICE_MSG_END_SMARTCARD:102,SPICE_MSG_SPICEVMC_DATA:101,SPICE_MSG_END_SPICEVMC:102,SPICE_COMMON_CAP_PROTOCOL_AUTH_SELECTION:0,SPICE_COMMON_CAP_AUTH_SPICE:1,SPICE_COMMON_CAP_AUTH_SASL:2,SPICE_COMMON_CAP_MINI_HEADER:3,SPICE_PLAYBACK_CAP_CELT_0_5_1:0,SPICE_PLAYBACK_CAP_VOLUME:1,SPICE_RECORD_CAP_CELT_0_5_1:0,SPICE_RECORD_CAP_VOLUME:1,SPICE_MAIN_CAP_SEMI_SEAMLESS_MIGRATE:0},wdi.SpiceTunnelServiceType={SPICE_TUNNEL_SERVICE_TYPE_INVALID:0,SPICE_TUNNEL_SERVICE_TYPE_GENERIC:1,SPICE_TUNNEL_SERVICE_TYPE_IPP:2,SPICE_TUNNEL_SERVICE_TYPE_ENUM_END:3},wdi.SpiceJpegAlphaFlags={SPICE_JPEG_ALPHA_FLAGS_TOP_DOWN:1,SPICE_JPEG_ALPHA_FLAGS_MASK:1},wdi.SpiceMaskFlags={SPICE_MASK_FLAGS_INVERS:1,SPICE_MASK_FLAGS_MASK:1},wdi.SpiceCursorType={SPICE_CURSOR_TYPE_ALPHA:0,SPICE_CURSOR_TYPE_MONO:1,SPICE_CURSOR_TYPE_COLOR4:2,SPICE_CURSOR_TYPE_COLOR8:3,SPICE_CURSOR_TYPE_COLOR16:4,SPICE_CURSOR_TYPE_COLOR24:5,SPICE_CURSOR_TYPE_COLOR32:6,SPICE_CURSOR_TYPE_ENUM_END:7,SPICE_CURSOR_TYPE_URL:8},wdi.SpiceImageFlags={SPICE_IMAGE_FLAGS_CACHE_ME:1,SPICE_IMAGE_FLAGS_HIGH_BITS_SET:2,SPICE_IMAGE_FLAGS_CACHE_REPLACE_ME:4,SPICE_IMAGE_FLAGS_MASK:7},wdi.SpiceAudioDataMode={SPICE_AUDIO_DATA_MODE_INVALID:0,SPICE_AUDIO_DATA_MODE_RAW:1,SPICE_AUDIO_DATA_MODE_CELT_0_5_1:2,SPICE_AUDIO_DATA_MODE_ENUM_END:3},wdi.SpiceAudioFmt={SPICE_AUDIO_FMT_INVALID:0,SPICE_AUDIO_FMT_S16:1,SPICE_AUDIO_FMT_ENUM_END:2},wdi.SpiceBitmapFmt={SPICE_BITMAP_FMT_INVALID:0,SPICE_BITMAP_FMT_1BIT_LE:1,SPICE_BITMAP_FMT_1BIT_BE:2,SPICE_BITMAP_FMT_4BIT_LE:3,SPICE_BITMAP_FMT_4BIT_BE:4,SPICE_BITMAP_FMT_8BIT:5,SPICE_BITMAP_FMT_16BIT:6,SPICE_BITMAP_FMT_24BIT:7,SPICE_BITMAP_FMT_32BIT:8,SPICE_BITMAP_FMT_RGBA:9,SPICE_BITMAP_FMT_ENUM_END:10},wdi.SpiceStreamFlags={SPICE_STREAM_FLAGS_TOP_DOWN:1,SPICE_STREAM_FLAGS_MASK:1},wdi.SpiceTunnelIpType={SPICE_TUNNEL_IP_TYPE_INVALID:0,SPICE_TUNNEL_IP_TYPE_IPv4:1,SPICE_TUNNEL_IP_TYPE_ENUM_END:2},wdi.SpiceBitmapFlags={SPICE_BITMAP_FLAGS_PAL_CACHE_ME:1,SPICE_BITMAP_FLAGS_PAL_FROM_CACHE:2,SPICE_BITMAP_FLAGS_TOP_DOWN:4,SPICE_BITMAP_FLAGS_MASK:7},wdi.SpiceStringFlags={SPICE_STRING_FLAGS_RASTER_A1:1,SPICE_STRING_FLAGS_RASTER_A4:2,SPICE_STRING_FLAGS_RASTER_A8:4,SPICE_STRING_FLAGS_RASTER_TOP_DOWN:8,SPICE_STRING_FLAGS_MASK:15},wdi.SpiceSurfaceFmt={SPICE_SURFACE_FMT_INVALID:0,SPICE_SURFACE_FMT_1_A:1,SPICE_SURFACE_FMT_8_A:8,SPICE_SURFACE_FMT_16_555:16,SPICE_SURFACE_FMT_32_xRGB:32,SPICE_SURFACE_FMT_16_565:80,SPICE_SURFACE_FMT_32_ARGB:96,SPICE_SURFACE_FMT_ENUM_END:97},wdi.SpiceCursorFlags={SPICE_CURSOR_FLAGS_NONE:1,SPICE_CURSOR_FLAGS_CACHE_ME:2,SPICE_CURSOR_FLAGS_FROM_CACHE:4,SPICE_CURSOR_FLAGS_MASK:7},wdi.SpiceLinkErr={SPICE_LINK_ERR_OK:0,SPICE_LINK_ERR_ERROR:1,SPICE_LINK_ERR_INVALID_MAGIC:2,SPICE_LINK_ERR_INVALID_DATA:3,SPICE_LINK_ERR_VERSION_MISMATCH:4,SPICE_LINK_ERR_NEED_SECURED:5,SPICE_LINK_ERR_NEED_UNSECURED:6,SPICE_LINK_ERR_PERMISSION_DENIED:7,SPICE_LINK_ERR_BAD_CONNECTION_ID:8,SPICE_LINK_ERR_CHANNEL_NOT_AVAILABLE:9,SPICE_LINK_ERR_ENUM_END:10},wdi.SpiceNotifySeverity={SPICE_NOTIFY_SEVERITY_INFO:0,SPICE_NOTIFY_SEVERITY_WARN:1,SPICE_NOTIFY_SEVERITY_ERROR:2,SPICE_NOTIFY_SEVERITY_ENUM_END:3},wdi.SpiceBrushType={SPICE_BRUSH_TYPE_NONE:0,SPICE_BRUSH_TYPE_SOLID:1,SPICE_BRUSH_TYPE_PATTERN:2,SPICE_BRUSH_TYPE_ENUM_END:3},wdi.SpiceAlphaFlags={SPICE_ALPHA_FLAGS_DEST_HAS_ALPHA:1,SPICE_ALPHA_FLAGS_SRC_SURFACE_HAS_ALPHA:2,SPICE_ALPHA_FLAGS_MASK:3},wdi.SpiceSurfaceFlags={SPICE_SURFACE_FLAGS_PRIMARY:1,SPICE_SURFACE_FLAGS_MASK:1},wdi.QuicImageType={QUIC_IMAGE_TYPE_INVALID:0,QUIC_IMAGE_TYPE_GRAY:1,QUIC_IMAGE_TYPE_RGB16:2,QUIC_IMAGE_TYPE_RGB24:3,QUIC_IMAGE_TYPE_RGB32:4,QUIC_IMAGE_TYPE_RGBA:5},wdi.SpiceImageType={SPICE_IMAGE_TYPE_BITMAP:0,SPICE_IMAGE_TYPE_QUIC:1,SPICE_IMAGE_TYPE_RESERVED:2,SPICE_IMAGE_TYPE_LZ_PLT:100,SPICE_IMAGE_TYPE_LZ_RGB:101,SPICE_IMAGE_TYPE_GLZ_RGB:102,SPICE_IMAGE_TYPE_FROM_CACHE:103,SPICE_IMAGE_TYPE_SURFACE:104,SPICE_IMAGE_TYPE_JPEG:105,SPICE_IMAGE_TYPE_FROM_CACHE_LOSSLESS:106,SPICE_IMAGE_TYPE_ZLIB_GLZ_RGB:107,SPICE_IMAGE_TYPE_JPEG_ALPHA:108,SPICE_IMAGE_TYPE_CANVAS:109,SPICE_IMAGE_TYPE_PNG:110,SPICE_IMAGE_TYPE_ENUM_END:111},wdi.SpiceImageScaleMode={SPICE_IMAGE_SCALE_MODE_INTERPOLATE:0,SPICE_IMAGE_SCALE_MODE_NEAREST:1,SPICE_IMAGE_SCALE_MODE_ENUM_END:2},wdi.SpiceResourceType={SPICE_RES_TYPE_INVALID:0,SPICE_RES_TYPE_PIXMAP:1,SPICE_RESOURCE_TYPE_ENUM_END:2},wdi.SpicePathFlags={SPICE_PATH_BEGIN:1,SPICE_PATH_END:2,SPICE_PATH_CLOSE:8,SPICE_PATH_BEZIER:16,SPICE_PATH_FLAGS_MASK:27},wdi.SpiceVideoCodecType={SPICE_VIDEO_CODEC_TYPE_MJPEG:1,SPICE_VIDEO_CODEC_TYPE_VP8:2,SPICE_VIDEO_CODEC_TYPE_H264:3,SPICE_VIDEO_CODEC_TYPE_VP9:4,SPICE_VIDEO_CODEC_TYPE_H265:5,SPICE_VIDEO_CODEC_TYPE_ENUM_END:2},wdi.SpiceVideoCodecValue={1:"",2:"vp8",3:"avc1.64001f",4:"vp09.00.31.08",5:"hvc1.1.6.L93.90"},wdi.SpiceRopd={SPICE_ROPD_INVERS_SRC:1,SPICE_ROPD_INVERS_BRUSH:2,SPICE_ROPD_INVERS_DEST:4,SPICE_ROPD_OP_PUT:8,SPICE_ROPD_OP_OR:16,SPICE_ROPD_OP_AND:32,SPICE_ROPD_OP_XOR:64,SPICE_ROPD_OP_BLACKNESS:128,SPICE_ROPD_OP_WHITENESS:256,SPICE_ROPD_OP_INVERS:512,SPICE_ROPD_INVERS_RES:1024,SPICE_ROPD_MASK:2047},wdi.SpiceMigrateFlags={SPICE_MIGRATE_NEED_FLUSH:1,SPICE_MIGRATE_NEED_DATA_TRANSFER:2,SPICE_MIGRATE_FLAGS_MASK:3},wdi.SpiceKeyboardModifierFlags={SPICE_KEYBOARD_MODIFIER_FLAGS_SCROLL_LOCK:1,SPICE_KEYBOARD_MODIFIER_FLAGS_NUM_LOCK:2,SPICE_KEYBOARD_MODIFIER_FLAGS_CAPS_LOCK:4,SPICE_KEYBOARD_MODIFIER_FLAGS_MASK:7},wdi.SpiceInfoCode={SPICE_INFO_GENERAL:0,SPICE_INFO_CODE_ENUM_END:1},wdi.SpiceMouseButton={SPICE_MOUSE_BUTTON_INVALID:0,SPICE_MOUSE_BUTTON_LEFT:1,SPICE_MOUSE_BUTTON_MIDDLE:2,SPICE_MOUSE_BUTTON_RIGHT:3,SPICE_MOUSE_BUTTON_UP:4,SPICE_MOUSE_BUTTON_DOWN:5,SPICE_MOUSE_BUTTON_ENUM_END:6},wdi.SpiceClipType={SPICE_CLIP_TYPE_NONE:0,SPICE_CLIP_TYPE_RECTS:1,SPICE_CLIP_TYPE_ENUM_END:2},wdi.SpiceMouseButtonMask={SPICE_MOUSE_BUTTON_MASK_LEFT:1,SPICE_MOUSE_BUTTON_MASK_MIDDLE:2,SPICE_MOUSE_BUTTON_MASK_RIGHT:4,SPICE_MOUSE_BUTTON_MASK_MASK:7},wdi.SpiceMouseModeTypes={SPICE_MOUSE_MODE_SERVER:1,SPICE_MOUSE_MODE_CLIENT:2,SPICE_MOUSE_MODE_MASK:3},wdi.SpiceDisplayCaps={SPICE_DISPLAY_CAP_SIZED_STREAM:0,SPICE_DISPLAY_CAP_MONITORS_CONFIG:1,SPICE_DISPLAY_CAP_COMPOSITE:2,SPICE_DISPLAY_CAP_A8_SURFACE:3,SPICE_DISPLAY_CAP_STREAM_REPORT:4,SPICE_DISPLAY_CAP_LZ4_COMPRESSION:5,SPICE_DISPLAY_CAP_PREF_COMPRESSION:6,SPICE_DISPLAY_CAP_GL_SCANOUT:7,SPICE_DISPLAY_CAP_MULTI_CODEC:8,SPICE_DISPLAY_CAP_CODEC_MJPEG:9,SPICE_DISPLAY_CAP_CODEC_VP8:10,SPICE_DISPLAY_CAP_CODEC_H264:11,SPICE_DISPLAY_CAP_PREF_VIDEO_CODEC_TYPE:12,SPICE_DISPLAY_CAP_CODEC_VP9:13,SPICE_DISPLAY_CAP_CODEC_H265:14},wdi.AgentCaps={VD_AGENT_CAP_MOUSE_STATE:0,VD_AGENT_CAP_MONITORS_CONFIG:1,VD_AGENT_CAP_REPLY:2,VD_AGENT_CAP_CLIPBOARD:3,VD_AGENT_CAP_DISPLAY_CONFIG:4,VD_AGENT_CAP_CLIPBOARD_BY_DEMAND:5,VD_AGENT_CAP_CLIPBOARD_SELECTION:6},wdi.AgentMessageTypes={VD_AGENT_MOUSE_STATE:1,VD_AGENT_MONITORS_CONFIG:2,VD_AGENT_REPLY:3,VD_AGENT_CLIPBOARD:4,VD_AGENT_DISPLAY_CONFIG:5,VD_AGENT_ANNOUNCE_CAPABILITIES:6,VD_AGENT_CLIPBOARD_GRAB:7,VD_AGENT_CLIPBOARD_REQUEST:8,VD_AGENT_CLIPBOARD_RELEASE:9,VD_AGENT_GET_WINDOWS_LIST:10,VD_AGENT_CLOSE_WINDOW:11,VD_AGENT_MOVE_WINDOW:12,VD_AGENT_RESIZE_WINDOW:13,VD_AGENT_MINIMIZE_WINDOW:14,VD_AGENT_RESTORE_WINDOW:15,VD_AGENT_MAXIMIZE_WINDOW:16,VD_AGENT_FOCUS_WINDOW:17,VD_AGENT_EXECUTE_COMMAND:18},wdi.ClipBoardTypes={VD_AGENT_CLIPBOARD_NONE:0,VD_AGENT_CLIPBOARD_UTF8_TEXT:1,VD_AGENT_CLIPBOARD_IMAGE_PNG:2,VD_AGENT_CLIPBOARD_IMAGE_BMP:3,VD_AGENT_CLIPBOARD_IMAGE_TIFF:4,VD_AGENT_CLIPBOARD_IMAGE_JPG:5};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
wdi.SpiceObject={properties:{},bytesToString:function(t){const e=new Uint8Array(t);return new TextDecoder("utf-8").decode(e)},bytesToURI:function(t){var e=new Blob([t],{type:"image/jpeg"});return URL.createObjectURL(e)},bytesToStringBE:function(t,e){for(var i="",s=e||t.length;s>=0;s--)i+=String.fromCharCode(t[s]);return i},bytesToInt8:function(t){return t.shift()},bytesToInt8NoAllocate:function(t){var e=t.getByte(0);return t.eatBytes(1),e},bytesToInt16:function(t){var e=t.shift();return t.shift()*Math.pow(16,2)+e},bytesToInt16BE:function(t){var e=t.shift(),i=t.shift();return e*Math.pow(16,2)+i},bytesToInt32:function(t){var e=wdi.SpiceObject.bytesToInt16(t);return wdi.SpiceObject.bytesToInt16(t)*Math.pow(16,4)+e},bytesToInt16NoAllocate:function(t){var e=t.getByte(0),i=t.getByte(1);return t.eatBytes(2),i*Math.pow(16,2)+e},bytesToInt32NoAllocate:function(t){var e=wdi.SpiceObject.bytesToInt16NoAllocate(t);return wdi.SpiceObject.bytesToInt16NoAllocate(t)*Math.pow(16,4)+e},bytesToInt32BE:function(t){var e=wdi.SpiceObject.bytesToInt16BE(t),i=wdi.SpiceObject.bytesToInt16BE(t);return e*Math.pow(16,4)+i},bytesToInt64:function(t){var e=wdi.SpiceObject.bytesToInt32(t).toString(2).lpad("0",32),i=wdi.SpiceObject.bytesToInt32(t).toString(2).lpad("0",32);return BigInteger.parse(i+e,2)},bytesToInt64NoAllocate:function(t){var e=wdi.SpiceObject.bytesToInt32NoAllocate(t).toString(2).lpad("0",32),i=wdi.SpiceObject.bytesToInt32NoAllocate(t).toString(2).lpad("0",32);return BigInteger.parse(i+e,2)},bytesToInt64BE:function(t){var e=wdi.SpiceObject.bytesToInt32BE(t).toString(2).lpad("0",32),i=wdi.SpiceObject.bytesToInt32BE(t).toString(2).lpad("0",32);return BigInteger.parse(e+i,2)},bytesToArray:function(t,e,i,s){var n=t.length,o=i||n,h=s||"LE",a=[],r=null;switch(e){case 8:r=wdi.SpiceObject.bytesToInt8;break;case 16:r="LE"==h?wdi.SpiceObject.bytesToInt16:wdi.SpiceObject.bytesToInt16BE;break;case 32:r="LE"==h?wdi.SpiceObject.bytesToInt32:wdi.SpiceObject.bytesToInt32BE;break;case 64:r="LE"==h?wdi.SpiceObject.bytesToInt64:wdi.SpiceObject.bytesToInt64BE;break;default:throw new Exception("Not supported number of bits",1)}for(var c=0;c<o;c++)a=a.concat(r(t));return a},int32ToDouble:function(t){return(15&t)/15+wdi.SpiceObject.unsignedToSigned(t>>4)},unsignedToSigned:function(t,e){var i=Math.pow(2,e)-1;return t&Math.pow(2,e-1)&&(t=-1*(i-t)),t},arrayToBytes:function(t,e,i){var s=t.length,n=i||s,o=null,h=[];switch(e){case 8:o=wdi.SpiceObject.numberTo8;break;case 16:o=wdi.SpiceObject.numberTo16;break;case 32:o=wdi.SpiceObject.numberTo32;break;case 64:o=wdi.SpiceObject.numberTo64;break;default:throw new Exception("Not supported number of bits",1)}for(var a=0;a<n;a++)a<=s?h=h.concat(o(t[a])):h.push(0);return h},stringToBytes:function(t){for(var e=[],i=0;i<t.length;i++){var s=t.charCodeAt(i);s<128?e.push(s):s<2048?e.push(192|s>>6,128|63&s):s<55296||s>=57344?e.push(224|s>>12,128|s>>6&63,128|63&s):(i++,s=65536+((1023&s)<<10|1023&t.charCodeAt(i)),e.push(240|s>>18,128|s>>12&63,128|s>>6&63,128|63&s))}return e},arrayBufferToBytes:function(t){return new Uint8Array(t).toJSArray()},stringHexToBytes:function(t){for(var e=t.length,i=[],s=0;s<e;s+=2)i.push(parseInt(t[s]+t[s+1],16));return i},stringBinaryToBytes:function(t,e){t=t.lpad("0",e);for(var i=[],s=e;s>=8;s-=8)i=i.concat(parseInt(t.substr(s-8,8),2));return i},stringToBytesPadding:function(t,e){for(var i=[],s=t.length,n=0;n<e;n++)e>s-1?i.push(0):i.push(t.charCodeAt(n));return i},numberTo64:function(t){var e=this.numberTo32((0x10000000000000000&t)>>32);return this.numberTo32(4294967295&t).concat(e)},numberTo32:function(t){for(var e=new Array(3),i=0;i<4;i++)e[i]=255&t,t>>=8;return e},numberTo16:function(t){for(var e=new Array(1),i=0;i<2;i++)e[i]=255&t,t>>=8;return e},numberTo8:function(t){return[255&t]},getMessageProperties:function(){return this.properties},getMessageProperty:function(t,e){return this.properties.hasOwnProperty(t)?this.properties[t]:e}},wdi.SpiceDataHeader=$.spcExtend(wdi.SpiceObject,{objectSize:6,init:function(t){t&&this.setContent(t)},setContent:function(t){this.type=t.type,this.size=t.size},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo16(this.type),this.numberTo32(this.size)),this.rawData},demarshall:function(t){return this.type=this.bytesToInt16NoAllocate(t),this.size=this.bytesToInt32NoAllocate(t),this}}),wdi.SpiceCompatibility=$.spcExtend(wdi.SpiceObject,{init:function(t){t&&this.setContent(t)},setContent:function(t){this.channel_type=t.channel_type,this.caps=t.caps},marshall:function(){return this.rawData=[],this.rawData=[this.numberTo8(this.channel_type),...this.caps.map((t=>this.numberTo32(t)))],this.rawData},demarshall:function(t){}}),wdi.SpiceLinkAuthMechanism=$.spcExtend(wdi.SpiceObject,{objectSize:4,init:function(t){t&&this.setContent(t)},setContent:function(t){this.auth_mechanism=t.auth_mechanism},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo32(this.auth_mechanism)),this.rawData},demarshall:function(t){if(this.expectedSize=arguments[1]||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.auth_mechanism=this.bytesToInt32NoAllocate(t),"customDemarshall"in this&&this.customDemarshall(t),this}}),wdi.SpiceLinkReply=$.spcExtend(wdi.SpiceObject,{objectSize:178,init:function(t){t&&this.setContent(t)},setContent:function(t){this.error=t.error,this.pub_key=t.pub_key,this.num_common_caps=t.num_common_caps,this.num_channel_caps=t.num_channel_caps,this.caps_offset=t.caps_offset},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo32(this.error),this.arrayToBytes(this.pub_key,8),this.numberTo32(this.num_common_caps),this.numberTo32(this.num_channel_caps),this.numberTo32(this.caps_offset)),this.rawData},demarshall:function(t){if(this.expectedSize=arguments[1]||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.error=this.bytesToInt32NoAllocate(t),this.pub_key=this.bytesToArray(t.shift(this.expectedSize),8),this.num_common_caps=this.bytesToInt32NoAllocate(t),this.num_channel_caps=this.bytesToInt32NoAllocate(t),this.caps_offset=this.bytesToInt32NoAllocate(t),"customDemarshall"in this&&this.customDemarshall(t),this}}),wdi.SpiceLinkEncryptedTicket=$.spcExtend(wdi.SpiceObject,{objectSize:128,init:function(t){t&&this.setContent(t)},setContent:function(t){this.encrypted_data=t.encrypted_data},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.stringToBytes(this.encrypted_data,8)),this.rawData},demarshall:function(t){if(this.expectedSize=arguments[1]||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.encrypted_data=this.bytesToArray(t.shift(this.expectedSize),8),"customDemarshall"in this&&this.customDemarshall(t),this}}),wdi.SpiceLinkMess=$.spcExtend(wdi.SpiceObject,{objectSize:18,init:function(t){t&&this.setContent(t)},setContent:function(t){this.connection_id=t.connection_id,this.channel_type=t.channel_type,this.channel_id=t.channel_id,this.num_common_caps=t.num_common_caps,this.num_channel_caps=t.num_channel_caps,this.caps_offset=t.caps_offset,this.common_caps=t.common_caps,this.channel_caps=t.channel_caps},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo32(this.connection_id),this.numberTo8(this.channel_type),this.numberTo8(this.channel_id),this.numberTo32(this.num_common_caps),this.numberTo32(this.num_channel_caps),this.numberTo32(this.caps_offset)),this.num_common_caps>0&&(this.rawData=this.rawData.concat(this.numberTo32(this.common_caps))),this.num_channel_caps>0&&(this.rawData=this.rawData.concat(this.numberTo32(this.channel_caps))),this.rawData},demarshall:function(t){if(this.expectedSize=arguments[1]||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.connection_id=this.bytesToInt32NoAllocate(t),this.channel_type=this.bytesToInt8NoAllocate(t),this.channel_id=this.bytesToInt8NoAllocate(t),this.num_common_caps=this.bytesToInt32NoAllocate(t),this.num_channel_caps=this.bytesToInt32NoAllocate(t),this.caps_offset=this.bytesToInt32NoAllocate(t),"customDemarshall"in this&&this.customDemarshall(t),this}}),wdi.SpiceLinkHeader=$.spcExtend(wdi.SpiceObject,{objectSize:16,init:function(t){t&&this.setContent(t)},setContent:function(t){this.magic=t.magic,this.major_version=t.major_version,this.minor_version=t.minor_version,this.size=t.size},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo32(this.magic),this.numberTo32(this.major_version),this.numberTo32(this.minor_version),this.numberTo32(this.size)),this.rawData},demarshall:function(t){if(this.expectedSize=arguments[1]||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.magic=this.bytesToInt32NoAllocate(t),this.major_version=this.bytesToInt32NoAllocate(t),this.minor_version=this.bytesToInt32NoAllocate(t),this.size=this.bytesToInt32NoAllocate(t),"customDemarshall"in this&&this.customDemarshall(t),this}}),wdi.RedMigrateData=$.spcExtend(wdi.SpiceObject,{objectSize:0,init:function(t){t&&this.setContent(t)},setContent:function(t){this.vector=t.vector},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.arrayToBytes(this.vector,8)),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.vector=this.bytesToArray(t.shift(this.expectedSize),8),this}}),wdi.RedMainInit=$.spcExtend(wdi.SpiceObject,{objectSize:32,init:function(t){t&&this.setContent(t)},setContent:function(t){this.session_id=t.session_id,this.display_channels_hint=t.display_channels_hint,this.supported_mouse_modes=t.supported_mouse_modes,this.current_mouse_mode=t.current_mouse_mode,this.agent_connected=t.agent_connected,this.agent_tokens=t.agent_tokens,this.multi_media_time=t.multi_media_time,this.ram_hint=t.ram_hint},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo32(this.session_id),this.numberTo32(this.display_channels_hint),this.numberTo32(this.supported_mouse_modes),this.numberTo32(this.current_mouse_mode),this.numberTo32(this.agent_connected),this.numberTo32(this.agent_tokens),this.numberTo32(this.multi_media_time),this.numberTo32(this.ram_hint)),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.session_id=this.bytesToInt32NoAllocate(t),this.display_channels_hint=this.bytesToInt32NoAllocate(t),this.supported_mouse_modes=this.bytesToInt32NoAllocate(t),this.current_mouse_mode=this.bytesToInt32NoAllocate(t),this.agent_connected=this.bytesToInt32NoAllocate(t),this.agent_tokens=this.bytesToInt32NoAllocate(t),this.multi_media_time=this.bytesToInt32NoAllocate(t),this.ram_hint=this.bytesToInt32NoAllocate(t),this}}),wdi.SpiceMsgMainAgentConnected=$.spcExtend(wdi.SpiceObject,{objectSize:0,init:function(t){t&&this.setContent(t)},setContent:function(t){},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this}}),wdi.SpiceChannelsList=$.spcExtend(wdi.SpiceObject,{objectSize:4,init:function(t){t&&this.setContent(t)},setContent:function(t){this.num_of_channels=t.num_of_channels,this.channels=t.channels},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo32(this.num_of_channels),this.arrayToBytes(this.channels,16)),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.num_of_channels=this.bytesToInt32NoAllocate(t),this.channels=this.bytesToArray(t.shift(this.expectedSize),16),this}}),wdi.RedSetAck=$.spcExtend(wdi.SpiceObject,{objectSize:8,init:function(t){t&&this.setContent(t)},setContent:function(t){this.generation=t.generation,this.window=t.window},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo32(this.generation),this.numberTo32(this.window)),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.generation=this.bytesToInt32NoAllocate(t),this.window=this.bytesToInt32NoAllocate(t),this}}),wdi.RedPing=$.spcExtend(wdi.SpiceObject,{objectSize:12,init:function(t){t&&this.setContent(t)},setContent:function(t){this.id=t.id,this.time=t.time},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo32(this.id),this.numberTo64(this.time)),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.id=this.bytesToInt32NoAllocate(t),this.time=this.bytesToInt64NoAllocate(t),this.expectedSize>12&&t.shift(this.expectedSize-12),this}}),wdi.RedMigrate=$.spcExtend(wdi.SpiceObject,{objectSize:4,init:function(t){t&&this.setContent(t)},setContent:function(t){this.flags=t.flags},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo32(this.flags)),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.flags=this.bytesToInt32NoAllocate(t),this}}),wdi.RedWaitForChannel=$.spcExtend(wdi.SpiceObject,{objectSize:10,init:function(t){t&&this.setContent(t)},setContent:function(t){this.type=t.type,this.id=t.id,this.serial=t.serial},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo8(this.type),this.numberTo8(this.id),this.numberTo64(this.serial)),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.type=this.bytesToInt8NoAllocate(t),this.id=this.bytesToInt8NoAllocate(t),this.serial=this.bytesToInt64NoAllocate(t),this}}),wdi.RedWaitForChannels=$.spcExtend(wdi.SpiceObject,{objectSize:1,init:function(t){t&&this.setContent(t)},setContent:function(t){this.wait_count=t.wait_count,this.wait_list=t.wait_list},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo8(this.wait_count),this.arrayToBytes(this.wait_list,8)),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.wait_count=this.bytesToInt8NoAllocate(t),this.wait_list=this.bytesToArray(t.shift(this.expectedSize),8),this}}),wdi.RedDisconnect=$.spcExtend(wdi.SpiceObject,{objectSize:12,init:function(t){t&&this.setContent(t)},setContent:function(t){this.time_stamp=t.time_stamp,this.reason=t.reason},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo64(this.time_stamp),this.numberTo32(this.reason)),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.time_stamp=this.bytesToInt64NoAllocate(t),this.reason=this.bytesToInt32NoAllocate(t),this}}),wdi.RedMigrationBegin=$.spcExtend(wdi.SpiceObject,{objectSize:4,init:function(t){t&&this.setContent(t)},setContent:function(t){this.port=t.port,this.sport=t.sport,this.host_name=t.host_name},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo16(this.port),this.numberTo16(this.sport),this.arrayToBytes(this.host_name,8)),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.port=this.bytesToInt16NoAllocate(t),this.sport=this.bytesToInt16NoAllocate(t),this.host_name=this.bytesToArray(t.shift(this.expectedSize),8),this}}),wdi.RedNotify=$.spcExtend(wdi.SpiceObject,{objectSize:25,init:function(t){t&&this.setContent(t)},setContent:function(t){this.time_stamp=t.time_stamp,this.severity=t.severity,this.visibility=t.visibility,this.what=t.what,this.message_len=t.message_len,this.message=t.message,this.zero=t.zero},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo64(this.time_stamp),this.numberTo32(this.severity),this.numberTo32(this.visibility),this.numberTo32(this.what),this.numberTo32(this.message_len),this.arrayToBytes(this.message,8),this.numberTo8(this.zero)),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.time_stamp=this.bytesToInt64NoAllocate(t),this.severity=this.bytesToInt32NoAllocate(t),this.visibility=this.bytesToInt32NoAllocate(t),this.what=this.bytesToInt32NoAllocate(t),this.message_len=this.bytesToInt32NoAllocate(t),this.message=this.bytesToString(t.shift(this.message_len)),this.zero=this.bytesToInt8NoAllocate(t),this}}),wdi.RedMode=$.spcExtend(wdi.SpiceObject,{objectSize:12,init:function(t){t&&this.setContent(t)},setContent:function(t){this.width=t.width,this.height=t.height,this.depth=t.depth},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo32(this.width),this.numberTo32(this.height),this.numberTo32(this.depth)),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.width=this.bytesToInt32NoAllocate(t),this.height=this.bytesToInt32NoAllocate(t),this.depth=this.bytesToInt32NoAllocate(t),this}}),wdi.SpiceCDisplayInit=$.spcExtend(wdi.SpiceObject,{objectSize:14,init:function(t){t&&this.setContent(t)},setContent:function(t){this.pixmap_cache_id=t.pixmap_cache_id,this.pixmap_cache_size=t.pixmap_cache_size,this.glz_dictionary_id=t.glz_dictionary_id,this.glz_dictionary_window_size=t.glz_dictionary_window_size},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo8(this.pixmap_cache_id),this.numberTo8(0),this.numberTo8(127),this.numberTo8(0),this.numberTo8(0),this.numberTo8(0),this.numberTo8(0),this.numberTo8(0),this.numberTo8(0),this.numberTo8(this.glz_dictionary_id),this.numberTo32(this.glz_dictionary_window_size)),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.pixmap_cache_id=this.bytesToInt8NoAllocate(t),this.pixmap_cache_size=this.bytesToInt64NoAllocate(t),this.glz_dictionary_id=this.bytesToInt8NoAllocate(t),this.glz_dictionary_window_size=this.bytesToInt32NoAllocate(t),this}}),wdi.SpiceSurfaceDestroy=$.spcExtend(wdi.SpiceObject,{objectSize:4,init:function(t){t&&this.setContent(t)},setContent:function(t){this.surface_id=t.surface_id},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo32(this.surface_id)),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.surface_id=this.bytesToInt32NoAllocate(t),this}}),wdi.SpiceSurface=$.spcExtend(wdi.SpiceObject,{objectSize:20,init:function(t){t&&this.setContent(t)},setContent:function(t){this.surface_id=t.surface_id,this.width=t.width,this.height=t.height,this.format=t.format,this.flags=t.flags},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo32(this.surface_id),this.numberTo32(this.width),this.numberTo32(this.height),this.numberTo32(this.format),this.numberTo32(this.flags)),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.surface_id=this.bytesToInt32NoAllocate(t),this.width=this.bytesToInt32NoAllocate(t),this.height=this.bytesToInt32NoAllocate(t),this.format=this.bytesToInt32NoAllocate(t),this.flags=this.bytesToInt32NoAllocate(t),this}}),wdi.SpicePath=$.spcExtend(wdi.SpiceObject,{objectSize:4,marshall:function(){},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});var i=this.num_segments=this.bytesToInt32NoAllocate(t);this.segments=[];for(var s=0;s<i;s++)this.segments[s]=(new wdi.SpicePathSeg).demarshall(t);return this}}),wdi.SpicePathSeg=$.spcExtend(wdi.SpiceObject,{objectSize:8,marshall:function(){},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});this.flags=this.bytesToInt8NoAllocate(t);var i=this.count=this.bytesToInt32NoAllocate(t);this.points=[];for(var s=0;s<i;s++)this.points[s]=(new wdi.SpicePointFix).demarshall(t);return this}}),wdi.SpicePoint=$.spcExtend(wdi.SpiceObject,{objectSize:8,init:function(t){t&&this.setContent(t)},setContent:function(t){this.x=t.x,this.y=t.y},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo32(this.x),this.numberTo32(this.y)),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.x=this.unsignedToSigned(this.bytesToInt32(t.shift(4)),32),this.y=this.unsignedToSigned(this.bytesToInt32(t.shift(4)),32),this}}),wdi.SpicePoint16=$.spcExtend(wdi.SpiceObject,{objectSize:4,init:function(t){t&&this.setContent(t)},setContent:function(t){this.x=t.x,this.y=t.y},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo16(this.x),this.numberTo16(this.y)),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.x=this.bytesToInt16NoAllocate(t),this.y=this.bytesToInt16NoAllocate(t),this}}),wdi.SpicePointFix=$.spcExtend(wdi.SpiceObject,{objectSize:8,init:function(t){t&&this.setContent(t)},setContent:function(t){this.x=t.hasOwnProperty("x")?t.x:0,this.y=t.hasOwnProperty("y")?t.y:0},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo32(this.x),this.numberTo32(this.y)),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.x=this.int32ToDouble(this.bytesToInt32(t.shift(4)),32),this.y=this.int32ToDouble(this.bytesToInt32(t.shift(4)),32),this}}),wdi.SpiceRect=$.spcExtend(wdi.SpiceObject,{objectSize:16,init:function(t){t&&this.setContent(t)},setContent:function(t){this.top=t.top,this.left=t.left,this.bottom=t.bottom,this.right=t.right},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo32(this.top),this.numberTo32(this.left),this.numberTo32(this.bottom),this.numberTo32(this.right)),this.rawData},demarshall:function(t,e){return this.top=this.bytesToInt32NoAllocate(t),this.left=this.bytesToInt32NoAllocate(t),this.bottom=this.bytesToInt32NoAllocate(t),this.right=this.bytesToInt32NoAllocate(t),this}}),wdi.SpiceClipRects=$.spcExtend(wdi.SpiceObject,{objectSize:4,init:function(t){t&&this.setContent(t)},setContent:function(t){this.num_rects=t.num_rects},marshall:function(){this.rawData=[],this.rawData=this.rawData.concat(this.numberTo32(this.num_rects));for(var t=0;t<this.num_rects;t++)this.rawData=this.rawData.concat(this.rects[t].marshall());return this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});if(this.num_rects=this.bytesToInt32NoAllocate(t),this.num_rects>0){this.rects=[];for(var i=0;i<this.num_rects;i++)this.rects[i]=(new wdi.SpiceRect).demarshall(t)}return this}}),wdi.SpiceClip=$.spcExtend(wdi.SpiceObject,{objectSize:1,init:function(t){t&&this.setContent(t)},setContent:function(t){this.type=t.type},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo8(this.type)),this.type==wdi.SpiceClipType.SPICE_CLIP_TYPE_RECTS&&(this.rawData=this.rawData.concat(this.rects.marshall())),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.type=this.bytesToInt8NoAllocate(t),this.type==wdi.SpiceClipType.SPICE_CLIP_TYPE_RECTS&&(this.rects=(new wdi.SpiceClipRects).demarshall(t)),this}}),wdi.SpiceDisplayBase=$.spcExtend(wdi.SpiceObject,{objectSize:4,init:function(t){t&&this.setContent(t)},setContent:function(t){this.surface_id=t.surface_id},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo32(this.surface_id),this.box.marshall(),this.clip.marshall()),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.surface_id=this.bytesToInt32NoAllocate(t),this.box=(new wdi.SpiceRect).demarshall(t),this.clip=(new wdi.SpiceClip).demarshall(t),this}}),wdi.SpiceQMask=$.spcExtend(wdi.SpiceObject,{objectSize:4,init:function(t){t&&this.setContent(t)},setContent:function(t){},marshall:function(){var t=[];return t=t.concat(this.numberTo8(this.flags),this.pos.marshall(),this.numberTo32(this.offset)),this.offset&&(t=t.concat(this.image.marshall())),t},demarshall:function(t,e){t.eatBytes(13)}}),wdi.SpiceImageDescriptor=$.spcExtend(wdi.SpiceObject,{objectSize:18,init:function(t){t&&this.setContent(t)},setContent:function(t){},marshall:function(){var t=[];return t=t.concat(this.numberTo64(this.id),this.numberTo8(this.type),this.numberTo8(this.flags),this.numberTo32(this.width),this.numberTo32(this.height))},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});var i=this.bytesToInt32NoAllocate(t);return this.id=i.toString(16)+this.bytesToInt32NoAllocate(t).toString(16),this.type=this.bytesToInt8NoAllocate(t),this.flags=this.bytesToInt8NoAllocate(t),this.width=this.bytesToInt32NoAllocate(t),this.height=this.bytesToInt32NoAllocate(t),this.offset=t.getPosition(),this}}),wdi.SpiceImage=$.spcExtend(wdi.SpiceObject,{objectSize:1,init:function(t){t&&this.setContent(t)},setContent:function(t){},marshall:function(){var t=[];return t=t.concat(this.imageDescriptor.marshall(),this.data)},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.imageDescriptor=(new wdi.SpiceImageDescriptor).demarshall(t),this.data=t.getRawData(),this}}),wdi.SpiceDrawCopy=$.spcExtend(wdi.SpiceObject,{objectSize:4,properties:{overWriteScreenArea:!0},init:function(t){t&&this.setContent(t)},setContent:function(t){this.offset=t.offset},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.base.marshall(),this.numberTo32(this.offset),this.src_area.marshall(),this.numberTo16(this.rop_descriptor),this.numberTo8(this.scale_mode),this.mask.marshall(),this.image.marshall()),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});if(this.base=(new wdi.SpiceDisplayBase).demarshall(t),this.offset=this.bytesToInt32NoAllocate(t),this.src_area=(new wdi.SpiceRect).demarshall(t),this.rop_descriptor=this.bytesToInt16NoAllocate(t),this.scale_mode=this.bytesToInt8NoAllocate(t),this.mask=(new wdi.SpiceQMask).demarshall(t),t.getPosition()==this.offset)this.image=(new wdi.SpiceImage).demarshall(t);else{var i=new wdi.ViewQueue;i.setData(t.getDataOffset(this.offset)),this.image=(new wdi.SpiceImage).demarshall(i)}return this}}),wdi.drawBlend=$.spcExtend(wdi.SpiceObject,{objectSize:4,init:function(t){t&&this.setContent(t)},setContent:function(t){this.base=t.base,this.alpha_flags=t.alpha_flags,this.alpha=t.alpha,this.offset=t.offset,this.src_area=t.src_area},marshall:function(){var t=[];return t=t.concat(this.base.marshall(),this.numberTo32(this.offset),this.src_area.marshall(),this.numberTo16(this.rop_descriptor),this.numberTo8(this.flags),this.mask.marshall(),this.image.marshall())},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.base=(new wdi.SpiceDisplayBase).demarshall(t),this.offset=this.bytesToInt32NoAllocate(t),this.src_area=(new wdi.SpiceRect).demarshall(t),this.rop_descriptor=this.bytesToInt16NoAllocate(t),this.flags=this.bytesToInt8NoAllocate(t),this.mask=(new wdi.SpiceQMask).demarshall(t),this.image=(new wdi.SpiceImage).demarshall(t),this}}),wdi.drawAlphaBlend=$.spcExtend(wdi.SpiceObject,{objectSize:4,init:function(t){t&&this.setContent(t)},setContent:function(t){this.base=t.base,this.alpha_flags=t.alpha_flags,this.alpha=t.alpha,this.offset=t.offset,this.src_area=t.src_area},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.base=(new wdi.SpiceDisplayBase).demarshall(t),this.alpha_flags=this.bytesToInt8NoAllocate(t),this.alpha=this.bytesToInt8NoAllocate(t),this.offset=this.bytesToInt32NoAllocate(t),this.src_area=(new wdi.SpiceRect).demarshall(t),this.image=(new wdi.SpiceImage).demarshall(t),this}}),wdi.drawTransparent=$.spcExtend(wdi.SpiceObject,{objectSize:4,init:function(t){t&&this.setContent(t)},setContent:function(t){},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.base=(new wdi.SpiceDisplayBase).demarshall(t),this.offset=this.bytesToInt32NoAllocate(t),this.src_area=(new wdi.SpiceRect).demarshall(t),this.transparent_color=(new wdi.SpiceColor).demarshall(t),this.transparent_true_color=(new wdi.SpiceColor).demarshall(t),this.image=(new wdi.SpiceImage).demarshall(t),this}}),wdi.SpiceCopyBits=$.spcExtend(wdi.SpiceObject,{objectSize:4,init:function(t){t&&this.setContent(t)},setContent:function(t){this.offset=t.offset},marshall:function(){var t=[];return t=t.concat(this.base.marshall(),this.src_position.marshall())},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.base=(new wdi.SpiceDisplayBase).demarshall(t),this.src_position=(new wdi.SpicePoint).demarshall(t),this}}),wdi.SpiceImageLZRGB=$.spcExtend(wdi.SpiceObject,{objectSize:32,init:function(t){t&&this.setContent(t)},setContent:function(t){},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.length=this.bytesToInt32BE(t.shift(4)),this.magic=this.bytesToStringBE(t.shift(4)),this.version=this.bytesToInt32BE(t.shift(4)),this.type=this.bytesToInt32BE(t.shift(4)),this.width=this.bytesToInt32BE(t.shift(4)),this.height=this.bytesToInt32BE(t.shift(4)),this.stride=this.bytesToInt32BE(t.shift(4)),this.top_down=this.bytesToInt32BE(t.shift(4)),this.data=t.shift(this.length),this}}),wdi.SpiceMouseModeRequest=$.spcExtend(wdi.SpiceObject,{objectSize:4,init:function(t){t&&this.setContent(t)},setContent:function(t){this.request_mode=t.request_mode},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo32(this.request_mode)),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.request_mode=this.bytesToInt32NoAllocate(t),this}}),wdi.SpiceMouseMode=$.spcExtend(wdi.SpiceObject,{objectSize:4,init:function(t){t&&this.setContent(t)},setContent:function(t){this.supported_modes=t.supported_modes,this.current_mode=t.current_mode},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo32(this.supported_modes),this.numberTo32(this.current_mode)),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,!(t.getLength()<this.expectedSize))return this.supported_modes=this.bytesToInt16NoAllocate(t),this.current_mode=this.bytesToInt16NoAllocate(t),this}}),wdi.RedcMousePress=$.spcExtend(wdi.SpiceObject,{objectSize:3,init:function(t){t&&this.setContent(t)},setContent:function(t){this.button_id=t.button_id,this.buttons_state=t.buttons_state},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo8(this.button_id),this.numberTo16(this.buttons_state)),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.button_id=this.bytesToInt8NoAllocate(t),this.buttons_state=this.bytesToInt16NoAllocate(t),this}}),wdi.RedcMousePosition=$.spcExtend(wdi.SpiceObject,{objectSize:11,init:function(t){t&&this.setContent(t)},setContent:function(t){this.x=t.x,this.y=t.y,this.buttons_state=t.buttons_state,this.display_id=t.display_id},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo32(this.x),this.numberTo32(this.y),this.numberTo16(this.buttons_state),this.numberTo8(this.display_id)),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.x=this.bytesToInt32NoAllocate(t),this.y=this.bytesToInt32NoAllocate(t),this.buttons_state=this.bytesToInt16NoAllocate(t),this.display_id=this.bytesToInt8NoAllocate(t),this}}),wdi.RedcMouseMotion=$.spcExtend(wdi.SpiceObject,{objectSize:10,init:function(t){t&&this.setContent(t)},setContent:function(t){this.x=t.x,this.y=t.y,this.buttons_state=t.buttons_state},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo32(this.x),this.numberTo32(this.y),this.numberTo16(this.buttons_state)),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.x=this.bytesToInt32NoAllocate(t),this.y=this.bytesToInt32NoAllocate(t),this.buttons_state=this.bytesToInt16NoAllocate(t),this}}),wdi.SpiceBrush=$.spcExtend(wdi.SpiceObject,{objectSize:8,init:function(t){t&&this.setContent(t)},setContent:function(t){this.type=t.type,this.color=t.color},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.type=this.bytesToInt8NoAllocate(t),this.type==wdi.SpiceBrushType.SPICE_BRUSH_TYPE_PATTERN?this.pattern=(new wdi.SpicePattern).demarshall(t):this.type==wdi.SpiceBrushType.SPICE_BRUSH_TYPE_SOLID&&(this.color=(new wdi.SpiceColor).demarshall(t)),this}}),wdi.SpiceColor=$.spcExtend(wdi.SpiceObject,{objectSize:4,init:function(t){t&&this.setContent(t)},setContent:function(t){},marshall:function(){return[this.r,this.g,this.b]},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});this.data=16777215&this.bytesToInt32(t.shift(4)),this.r=this.data>>16,this.g=this.data>>8&255,this.b=255&this.data,this.html_color="rgb("+this.r+", "+this.g+", "+this.b+")";var i=this.r.toString(16),s=this.g.toString(16),n=this.b.toString(16);return i.length<2&&(i="0"+i),s.length<2&&(s="0"+s),n.length<2&&(n="0"+n),this.simple_html_color="#"+i+s+n,this}}),wdi.RgbaColor=$.spcExtend(wdi.SpiceObject,{objectSize:4,init:function(t){t&&this.setContent(t)},setContent:function(t){},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.data=4294967295&this.bytesToInt32(t.shift(4)),this.a=this.data>>>24,this.r=this.data>>>16&255,this.g=this.data>>>8&255,this.b=255&this.data,this.html_color="rgb("+this.r+", "+this.g+", "+this.b+")",this}}),wdi.SpicePattern=$.spcExtend(wdi.SpiceObject,{objectSize:12,init:function(t){t&&this.setContent(t)},setContent:function(t){},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});this.offset=this.bytesToInt32NoAllocate(t),this.point=(new wdi.SpicePoint).demarshall(t);var i=new wdi.ViewQueue;return i.setData(t.getDataOffset(this.offset)),this.image=(new wdi.SpiceImage).demarshall(i),this}}),wdi.SpiceDrawFill=$.spcExtend(wdi.SpiceObject,{objectSize:4,properties:{overWriteScreenArea:!0},init:function(t){t&&this.setContent(t)},setContent:function(t){this.offset=t.offset},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo32(this.offset)),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.base=(new wdi.SpiceDisplayBase).demarshall(t),this.brush=(new wdi.SpiceBrush).demarshall(t),this.rop_descriptor=this.bytesToInt16NoAllocate(t),this.mask=(new wdi.SpiceQMask).demarshall(t),this.brush.type==wdi.SpiceBrushType.SPICE_BRUSH_TYPE_PATTERN&&(this.brush.pattern.image=(new wdi.SpiceImageDescriptor).demarshall(t),this.brush.pattern.imageData=t.getData()),this}}),wdi.SpiceDrawRop3=$.spcExtend(wdi.SpiceObject,{objectSize:4,marshall:function(){var t=[];return t=t.concat(this.base.marshall(),this.numberTo32(this.offset),this.src_area.marshall(),this.brush.marshall(),this.numberTo8(this.rop_descriptor),this.numberTo8(this.scale_mode),this.mask.marshall(),this.src_image.marshall()),this.brush.type==wdi.SpiceBrushType.SPICE_BRUSH_TYPE_PATTERN&&(t=t.concat(this.brush.pattern.image.marshall(),this.brush.pattern.imageData)),t},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.base=(new wdi.SpiceDisplayBase).demarshall(t),this.offset=this.bytesToInt32NoAllocate(t),this.src_area=(new wdi.SpiceRect).demarshall(t),this.brush=(new wdi.SpiceBrush).demarshall(t),this.rop_descriptor=this.bytesToInt8NoAllocate(t),this.scale_mode=this.bytesToInt8NoAllocate(t),this.mask=(new wdi.SpiceQMask).demarshall(t),this.src_image=(new wdi.SpiceImage).demarshall(t),this.brush.type==wdi.SpiceBrushType.SPICE_BRUSH_TYPE_PATTERN&&(this.brush.pattern.image=(new wdi.SpiceImageDescriptor).demarshall(t),this.brush.pattern.imageData=t.getData()),this}}),wdi.SpiceDrawBlackness=$.spcExtend(wdi.SpiceObject,{objectSize:4,init:function(t){t&&this.setContent(t)},setContent:function(t){this.offset=t.offset},marshall:function(){var t=[];return t=t.concat(this.base.marshall(),this.mask.marshall())},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.base=(new wdi.SpiceDisplayBase).demarshall(t),this.mask=(new wdi.SpiceQMask).demarshall(t),this}}),wdi.SpiceDrawWhiteness=$.spcExtend(wdi.SpiceObject,{objectSize:4,init:function(t){t&&this.setContent(t)},setContent:function(t){this.offset=t.offset},marshall:function(){var t=[];return t=t.concat(this.base.marshall(),this.mask.marshall())},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.base=(new wdi.SpiceDisplayBase).demarshall(t),this.mask=(new wdi.SpiceQMask).demarshall(t),this}}),wdi.SpiceScanCode=$.spcExtend(wdi.SpiceObject,{objectSize:1,init:function(t){t&&this.setContent(t)},setContent:function(t){this.code=t||0,this.zero=0},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.arrayToBytes(this.code,8),this.numberTo8(this.zero)),this.rawData},demarshall:function(t,e){return this},getCode:function(){return this.code}}),wdi.RedCursorInit=$.spcExtend(wdi.SpiceObject,{objectSize:9,marshall:function(){},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.position=(new wdi.SpicePoint16).demarshall(t),this.trail_length=this.bytesToInt16NoAllocate(t),this.trail_frequency=this.bytesToInt16NoAllocate(t),this.visible=this.bytesToInt8NoAllocate(t),this.cursor=(new wdi.RedCursor).demarshall(t),this}}),wdi.RedCursor=$.spcExtend(wdi.SpiceObject,{objectSize:2,marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo16(this.flags)),1&this.flags||(this.rawData=this.rawData.concat(this.header.marshall(),this.data)),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.flags=this.bytesToInt16NoAllocate(t),this.header=null,this.data=null,1&this.flags||(this.header=(new wdi.RedCursorHeader).demarshall(t),this.data=t.getData()),this}}),wdi.RedCursorHeader=$.spcExtend(wdi.SpiceObject,{objectSize:17,marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo64(this.unique),this.numberTo8(this.type),this.numberTo16(this.width),this.numberTo16(this.height),this.numberTo16(this.hot_spot_x),this.numberTo16(this.hot_spot_y)),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.unique=this.bytesToInt64NoAllocate(t),this.type=this.bytesToInt8NoAllocate(t),this.width=this.bytesToInt16NoAllocate(t),this.height=this.bytesToInt16NoAllocate(t),this.hot_spot_x=this.bytesToInt16NoAllocate(t),this.hot_spot_y=this.bytesToInt16NoAllocate(t),this}}),wdi.RedCursorSet=$.spcExtend(wdi.SpiceObject,{objectSize:5,marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.position.marshall(),this.numberTo8(this.visible),this.cursor.marshall()),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.position=(new wdi.SpicePoint16).demarshall(t),this.visible=this.bytesToInt8NoAllocate(t),this.cursor=(new wdi.RedCursor).demarshall(t),this}}),wdi.RedCursorHide=$.spcExtend(wdi.SpiceObject,{objectSize:5,marshall:function(){},demarshall:function(){return this}}),wdi.RasterGlyph=$.spcExtend(wdi.SpiceObject,{objectSize:20,marshall:function(){},demarshall:function(t,e,i){for(var s=1==e?1:2*e,n=[],o=0;o<i;o++)n[o]={},n[o].render_pos=(new wdi.SpicePoint).demarshall(t),n[o].glyph_origin=(new wdi.SpicePoint).demarshall(t),n[o].width=this.bytesToInt16NoAllocate(t),n[o].height=this.bytesToInt16NoAllocate(t),n[o].data=t.shift(n[o].height*Math.ceil(n[o].width*s/8));return n}}),wdi.GlyphString=$.spcExtend(wdi.SpiceObject,{objectSize:3,marshall:function(){},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.len=this.bytesToInt16NoAllocate(t),this.flags=this.bytesToInt8NoAllocate(t),this.raster_glyph=(new wdi.RasterGlyph).demarshall(t,this.flags,this.len),this}}),wdi.SpiceDrawText=$.spcExtend(wdi.SpiceObject,{objectSize:8,init:function(t){t&&this.setContent(t)},setContent:function(t){},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.base=(new wdi.SpiceDisplayBase).demarshall(t),this.offset=this.bytesToInt32NoAllocate(t),this.back_area=(new wdi.SpiceRect).demarshall(t),this.fore_brush=(new wdi.SpiceBrush).demarshall(t),this.back_brush=(new wdi.SpiceBrush).demarshall(t),this.fore_mode=this.bytesToInt16NoAllocate(t),this.back_mode=this.bytesToInt16NoAllocate(t),this.glyph_string=(new wdi.GlyphString).demarshall(t),this}}),wdi.SpiceLineAttr=$.spcExtend(wdi.SpiceObject,{objectSize:8,marshall:function(){},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.flags=this.bytesToInt8NoAllocate(t),this.flags&&(this.style_nseg=this.bytesToInt8NoAllocate(t),this.style=this.int32ToDouble(this.bytesToInt32(t.shift(4)))),this}}),wdi.SpiceStroke=$.spcExtend(wdi.SpiceObject,{objectSize:8,init:function(t){t&&this.setContent(t)},setContent:function(t){},marshall:function(){},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.base=(new wdi.SpiceDisplayBase).demarshall(t),this.offset=this.bytesToInt32NoAllocate(t),this.attr=(new wdi.SpiceLineAttr).demarshall(t),this.brush=(new wdi.SpiceBrush).demarshall(t),this.fore_mode=this.bytesToInt16NoAllocate(t),this.back_mode=this.bytesToInt16NoAllocate(t),this.path=(new wdi.SpicePath).demarshall(t),this}}),wdi.SpiceDrawInvers=$.spcExtend(wdi.SpiceObject,{objectSize:8,init:function(t){t&&this.setContent(t)},setContent:function(t){},marshall:function(){var t=[];return t=t.concat(this.base.marshall(),this.mask.marshall())},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.base=(new wdi.SpiceDisplayBase).demarshall(t),this.mask=(new wdi.SpiceQMask).demarshall(t),this}}),wdi.SpiceStreamCreate=$.spcExtend(wdi.SpiceObject,{objectSize:8,init:function(t){t&&this.setContent(t)},setContent:function(t){},marshall:function(){var t=[];return t.concat(this.numberTo32(this.surface_id),this.numberTo32(this.id),this.numberTo8(this.flags),this.numberTo8(this.codec),this.numberTo64(this.stamp),this.numberTo32(this.stream_width),this.numberTo32(this.stream_height),this.numberTo32(this.src_width),this.numberTo32(this.src_height),this.rect.marshall(),this.clip.marshall()),t},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.surface_id=this.bytesToInt32NoAllocate(t),this.id=this.bytesToInt32NoAllocate(t),this.flags=this.bytesToInt8NoAllocate(t),this.codec=this.bytesToInt8NoAllocate(t),this.stamp=this.bytesToInt64NoAllocate(t),this.stream_width=this.bytesToInt32NoAllocate(t),this.stream_height=this.bytesToInt32NoAllocate(t),this.src_width=this.bytesToInt32NoAllocate(t),this.src_height=this.bytesToInt32NoAllocate(t),this.rect=(new wdi.SpiceRect).demarshall(t),this.clip=(new wdi.SpiceClip).demarshall(t),this}}),wdi.SpiceStreamDestroy=$.spcExtend(wdi.SpiceObject,{objectSize:4,init:function(t){t&&this.setContent(t)},setContent:function(t){},marshall:function(){var t=[];return t=t.concat(this.numberTo32(this.surface_id),this.numberTo32(this.id))},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.surface_id=this.bytesToInt32NoAllocate(t),this.id=this.bytesToInt32NoAllocate(t),this}}),wdi.SpiceStreamData=$.spcExtend(wdi.SpiceObject,{objectSize:8,init:function(t){t&&this.setContent(t)},setContent:function(t){},marshall:function(){var t=[];return t=t.concat(this.numberTo32(this.id),this.numberTo32(this.multi_media_type),this.numberTo32(this.data_size),this.data)},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.id=this.bytesToInt32NoAllocate(t),this.multi_media_type=this.bytesToInt32NoAllocate(t),this.data_size=this.bytesToInt32NoAllocate(t),this.data=t.getRawData(),this}}),wdi.SpiceStreamClip=$.spcExtend(wdi.SpiceObject,{objectSize:4,init:function(t){t&&this.setContent(t)},setContent:function(t){},marshall:function(){var t=[];return t=t.concat(this.numberTo32(this.id),this.clip.marshall())},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.id=this.bytesToInt32NoAllocate(t),this.clip=(new wdi.SpiceClip).demarshall(t),this}}),wdi.SpiceStreamDataSized=$.spcExtend(wdi.SpiceObject,{objectSize:12,init:function(t){t&&this.setContent(t)},setContent:function(t){},marshall:function(){var t=[];return t=t.concat(this.numberTo32(this.id),this.numberTo32(this.width),this.numberTo32(this.height))},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.id=this.bytesToInt32NoAllocate(t),this.width=this.bytesToInt32NoAllocate(t),this.height=this.bytesToInt32NoAllocate(t),this}}),wdi.SpiceStreamActiveReport=$.spcExtend(wdi.SpiceObject,{objectSize:4,init:function(t){t&&this.setContent(t)},setContent:function(t){},marshall:function(){},demarshall:function(t,e){}}),wdi.SpiceModifierData=$.spcExtend(wdi.SpiceObject,{objectSize:8,init:function(t){t&&this.setContent(t)},setContent:function(t){},setModifierData:function(t){6===t?(wdi.Keymap.capsLock=!0,wdi.Keymap.numLock=!0):4===t?(wdi.Keymap.capsLock=!0,wdi.Keymap.numLock=!1):2===t?(wdi.Keymap.capsLock=!1,wdi.Keymap.numLock=!0):0===t&&(wdi.Keymap.capsLock=!1,wdi.Keymap.numLock=!1)},marshall:function(){var t=[];return t=t.concat(this.numberTo16(this.data))},demarshall:function(t,e){return this.expectedSize=e||this.objectSize,this.data=this.bytesToInt16NoAllocate(t),this}}),wdi.SpiceResourceList=$.spcExtend(wdi.SpiceObject,{objectSize:2,init:function(t){t&&this.setContent(t)},setContent:function(t){},marshall:function(){for(var t=[],e=0;e<this.num_items;e++)t=t.concat(this.numberTo8(this.items[e].type),this.numberTo64(this.items[e].id));return t},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});this.num_items=this.bytesToInt16NoAllocate(t),this.items=[];for(var i=0;i<this.num_items;i++)this.items[i]={type:this.bytesToInt8(t.shift(1)),id:this.bytesToInt64(t.shift(8))};return this}}),wdi.SpiceMsgMainAgentTokens=$.spcExtend(wdi.SpiceObject,{objectSize:4,init:function(t){t&&this.setContent(t)},setContent:function(t){this.num_tokens=t.num_tokens},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo32(this.num_tokens)),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.num_tokens=this.bytesToInt32NoAllocate(t),this}}),wdi.SpiceMsgMainAgentDisconnected=$.spcExtend(wdi.SpiceObject,{objectSize:4,init:function(t){t&&this.setContent(t)},setContent:function(t){this.error=t.error},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo32(this.error)),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.error=this.bytesToInt32NoAllocate(t),this}}),wdi.SpiceMsgMainAgentData=$.spcExtend(wdi.SpiceObject,{objectSize:4,init:function(t){t&&this.setContent(t)},setContent:function(t){this.agentMessage=t.agentMessage},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.agentMessage.marshall()),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.agentMessage=(new wdi.VDAgentMessage).demarshall(t),this}}),wdi.VDIChunkHeader=$.spcExtend(wdi.SpiceObject,{objectSize:8,init:function(t){t&&this.setContent(t)},setContent:function(t){this.port=t.port,this.size=t.size,this.packet=t.packet},marshall:function(){this.rawData=[];var t=this.packet.marshall();return this.rawData=this.rawData.concat(this.numberTo32(this.port),this.numberTo32(t.length),t),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this}}),wdi.VDAgentMessage=$.spcExtend(wdi.SpiceObject,{objectSize:20,init:function(t){t&&this.setContent(t)},setContent:function(t){this.protocol=t.protocol,this.type=t.type,this.opaque=t.opaque,this.size=t.size,this.data=t.data},marshall:function(){this.rawData=[];var t=this.data.marshall();return this.rawData=this.rawData.concat(this.numberTo32(this.protocol),this.numberTo32(this.type),this.numberTo64(this.opaque),this.numberTo32(t.length),t),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});if(this.protocol=this.bytesToInt32NoAllocate(t),this.type=this.bytesToInt32NoAllocate(t),this.opaque=this.bytesToInt64NoAllocate(t),this.size=this.bytesToInt32NoAllocate(t),this.type==wdi.AgentMessageTypes.VD_AGENT_GET_WINDOWS_LIST){var i=this.bytesToString(t.shift(t.length));this.window_list="change"==i?i:jQuery.parseJSON(i)}else this.type==wdi.AgentMessageTypes.VD_AGENT_ANNOUNCE_CAPABILITIES?this.caps=(new wdi.VDAgentAnnounceCapabilities).demarshall(t):this.type==wdi.AgentMessageTypes.VD_AGENT_CLIPBOARD_GRAB?0==t.getLength()?this.clipboardType=wdi.ClipBoardTypes.VD_AGENT_CLIPBOARD_NONE:this.clipboardType=this.bytesToInt32NoAllocate(t):this.type==wdi.AgentMessageTypes.VD_AGENT_CLIPBOARD_REQUEST?this.clipboardType=this.bytesToInt32NoAllocate(t):this.type==wdi.AgentMessageTypes.VD_AGENT_CLIPBOARD&&(this.clipboardType=this.bytesToInt32NoAllocate(t),this.clipboardData=this.bytesToString(t.shift(t.length)));return this}}),wdi.VDAgentHwndWindow=$.spcExtend(wdi.SpiceObject,{objectSize:4,init:function(t){t&&this.setContent(t)},setContent:function(t){this.hwnd=t.hwnd},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo32(this.hwnd)),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this}}),wdi.VDAgentMoveWindow=$.spcExtend(wdi.SpiceObject,{objectSize:12,init:function(t){t&&this.setContent(t)},setContent:function(t){this.hwnd=t.hwnd,this.x=t.x,this.y=t.y},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo32(this.hwnd),this.numberTo32(this.x),this.numberTo32(this.y)),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this}}),wdi.VDAgentResizeWindow=$.spcExtend(wdi.SpiceObject,{objectSize:12,init:function(t){t&&this.setContent(t)},setContent:function(t){this.hwnd=t.hwnd,this.width=t.width,this.height=t.height},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo32(this.hwnd),this.numberTo32(this.width),this.numberTo32(this.height)),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this}}),wdi.VDAgentMonitorsConfig=$.spcExtend(wdi.SpiceObject,{objectSize:8,init:function(t){t&&this.setContent(t)},setContent:function(t){this.num_of_monitors=t.num_of_monitors,this.flags=t.flags,this.data=t.data},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo32(this.num_of_monitors),this.numberTo32(this.flags),this.data.marshall()),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this}}),wdi.VDAgentMonConfig=$.spcExtend(wdi.SpiceObject,{objectSize:20,init:function(t){t&&this.setContent(t)},setContent:function(t){this.height=t.height,this.width=t.width,this.depth=t.depth,this.x=t.x,this.y=t.y},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo32(this.height),this.numberTo32(this.width),this.numberTo32(this.depth),this.numberTo32(this.x),this.numberTo32(this.y)),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this}}),wdi.VDAgentAnnounceCapabilities=$.spcExtend(wdi.SpiceObject,{objectSize:8,init:function(t){t&&this.setContent(t)},setContent:function(t){this.request=t.request,this.caps=t.caps},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo32(this.request),this.numberTo32(this.caps)),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.request=this.bytesToInt32NoAllocate(t),this.caps=this.bytesToInt32NoAllocate(t),this}}),wdi.VDAgentExecuteCommand=$.spcExtend(wdi.SpiceObject,{objectSize:4,init:function(t){t&&this.setContent(t)},setContent:function(t){this.size=t.size,this.data=t.data},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo32(this.size),this.stringToBytes(this.data)),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this}}),wdi.VDAgentClipboardRequest=$.spcExtend(wdi.SpiceObject,{objectSize:4,init:function(t){t&&this.setContent(t)},setContent:function(t){this.type=t.type},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo32(this.type)),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.type=this.bytesToInt32NoAllocate(t),this}}),wdi.VDAgentClipboardGrab=$.spcExtend(wdi.SpiceObject,{objectSize:4,init:function(t){t&&this.setContent(t)},setContent:function(t){this.types=t.types},marshall:function(){return this.rawData=[],this.rawData=this.rawData.concat(this.numberTo32(this.types)),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.types=this.bytesToInt32NoAllocate(t),this}}),wdi.VDAgentClipboard=$.spcExtend(wdi.SpiceObject,{objectSize:6,init:function(t){t&&this.setContent(t)},setContent:function(t){this.type=t.type,this.data=t.data},marshall:function(){var t;return this.rawData=[],t=this.type===wdi.ClipBoardTypes.VD_AGENT_CLIPBOARD_UTF8_TEXT?this.stringToBytes(this.data):this.arrayBufferToBytes(this.data),this.rawData=this.rawData.concat(this.numberTo32(this.type),t),this.rawData},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.type=this.bytesToInt32NoAllocate(t),this.data=t.getData(),this}}),wdi.PlaybackMode=$.spcExtend(wdi.SpiceObject,{objectSize:6,init:function(t){t&&this.setContent(t)},setContent:function(t){this.multimedia_time=t.multimedia_time,this.audio_data_mode=t.audio_data_mode,this.data=t.data},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.multimedia_time=this.bytesToInt32NoAllocate(t),this.audio_data_mode=this.bytesToInt16NoAllocate(t),this.data=t.getData(),this}}),wdi.PlaybackStart=$.spcExtend(wdi.SpiceObject,{objectSize:14,init:function(t){t&&this.setContent(t)},setContent:function(t){this.channels=t.channels,this.format=t.format,this.frequency=t.frequency,this.time=t.time},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.channels=this.bytesToInt32NoAllocate(t),this.format=this.bytesToInt16NoAllocate(t),this.frequency=this.bytesToInt32NoAllocate(t),this.time=this.bytesToInt32NoAllocate(t),this}}),wdi.PlaybackData=$.spcExtend(wdi.SpiceObject,{objectSize:4,init:function(t){t&&this.setContent(t)},setContent:function(t){this.multimedia_time=t.multimedia_time,this.data=t.data},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.multimedia_time=this.bytesToInt32NoAllocate(t),this.data=t.getData(),this}}),wdi.MainMultiMediaTime=$.spcExtend(wdi.SpiceObject,{objectSize:4,init:function(t){t&&this.setContent(t)},setContent:function(t){this.multimedia_time=t.multimedia_time},marshall:function(){},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this.multimedia_time=this.bytesToInt32NoAllocate(t),this}}),wdi.PlaybackStop=$.spcExtend(wdi.SpiceObject,{objectSize:0,demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this}}),wdi.MainMChannelsList=$.spcExtend(wdi.SpiceObject,{objectSize:4,init:function(t){t&&this.setContent(t)},setContent:function(t){this.num_of_channels=t.num_of_channels},marshall:function(){},demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});this.num_of_channels=this.bytesToInt32NoAllocate(t),this.channels=[];for(var i=null,s=0;s<this.num_of_channels;s++)i=this.bytesToInt8NoAllocate(t),this.bytesToInt8NoAllocate(t),this.channels.push(i);return this}}),wdi.SpiceDisplayInvalidAllPalettes=$.spcExtend(wdi.SpiceObject,{objectSize:0,demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this}}),wdi.SpiceDisplayMark=$.spcExtend(wdi.SpiceObject,{objectSize:0,demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this}}),wdi.SpiceDisplayReset=$.spcExtend(wdi.SpiceObject,{objectSize:0,demarshall:function(t,e){if(this.expectedSize=e||this.objectSize,t.getLength()<this.expectedSize)throw new wdi.Exception({message:"Not enough queue to read",errorCode:3});return this}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var SWCanvas=function(t){this.arr=new ArrayBuffer(t.width*t.height*4),this.arr32=new Uint32Array(this.arr),this.arr8=new Uint8ClampedArray(this.arr),this.canvas=t,this.width=this.canvas.width,this.height=this.canvas.height};SWCanvas.prototype.putImageData=function(t,a,r){for(var i,h,e=t.data.buffer,s=t.width,n=t.height,o=this.width;n--;)i=(r+n)*o+a,h=new Uint32Array(e,s*n*4,s),this.arr32.set(h,i)},SWCanvas.prototype.getImageData=function(t,a,r,i){for(var h,e=new Uint32Array(r*i),s=this.arr32,n=i,o=this.width;n--;){h=(a+n)*o+t;var f=s.subarray(h,h+r);e.set(f,r*n)}return new ImageData(new Uint8ClampedArray(e.buffer),r,i)},SWCanvas.prototype.fillRect=function(t,a,r,i,h,e,s){for(var n,o=new Uint32Array(e),f=4278190080|t|a<<8|r<<16,v=this.width,w=e;w--;)o[w]=f;for(;s--;)n=(h+s)*v+i,this.arr32.set(o,n)},SWCanvas.prototype.flushBack=function(){var t=this.canvas.getContext("2d").getImageData(0,0,this.width,this.height).data;this.arr8.set(t)},SWCanvas.prototype.flush=function(){var t=new ImageData(this.arr8,this.width,this.height);this.canvas.getContext("2d").putImageData(t,0,0)};
|