Package streamer

Examples of streamer.ByteBuffer.writeShortLE()


        // cbUserName length: 16 bytes (0x10, LE) (NOT including size of mandatory NULL terminator)
        buf.writeShortLE(userName.length);

        // cbPassword length: (LE) (NOT including size of mandatory NULL terminator)
        buf.writeShortLE(password.length);

        // cbAlternateShell:  (LE) (NOT including size of mandatory NULL terminator)
        buf.writeShortLE(alternateShell.length);

        // cbWorkingDir: (LE) (NOT including size of mandatory NULL terminator)
View Full Code Here


        // cbPassword length: (LE) (NOT including size of mandatory NULL terminator)
        buf.writeShortLE(password.length);

        // cbAlternateShell:  (LE) (NOT including size of mandatory NULL terminator)
        buf.writeShortLE(alternateShell.length);

        // cbWorkingDir: (LE) (NOT including size of mandatory NULL terminator)
        buf.writeShortLE(workingDir.length);

        //
View Full Code Here

        // cbAlternateShell:  (LE) (NOT including size of mandatory NULL terminator)
        buf.writeShortLE(alternateShell.length);

        // cbWorkingDir: (LE) (NOT including size of mandatory NULL terminator)
        buf.writeShortLE(workingDir.length);

        //
        // Values
        //
View Full Code Here

        // Working directory: (UCS2), see cbWorkingDir
        buf.writeBytes(workingDir);
        buf.writeShort(0);

        // Client address family: 2 (AF_INET, LE)
        buf.writeShortLE(2);

        // cbClientAddress: ( LE) (including the size of the mandatory NULL terminator)
        buf.writeShortLE(clientAddress.length + 2);

        // Client address: (UCS2)
View Full Code Here

        // Client address family: 2 (AF_INET, LE)
        buf.writeShortLE(2);

        // cbClientAddress: ( LE) (including the size of the mandatory NULL terminator)
        buf.writeShortLE(clientAddress.length + 2);

        // Client address: (UCS2)
        buf.writeBytes(clientAddress);
        buf.writeShort(0);
View Full Code Here

        // Client address: (UCS2)
        buf.writeBytes(clientAddress);
        buf.writeShort(0);

        // cbClientDir: 64 bytes (0x40, LE) (including the size of the mandatory NULL terminator)
        buf.writeShortLE(clientDir.length + 2);

        // Client directory: (UCS2)
        buf.writeBytes(clientDir);
        buf.writeShort(0);
View Full Code Here

        // Performance flags: 0x7 (LE) = PERF_DISABLE_WALLPAPER (0x1), PERF_DISABLE_FULLWINDOWDRAG (0x2), PERF_DISABLE_MENUANIMATIONS (0x4)
        buf.writeIntLE(PERF_DISABLE_WALLPAPER | PERF_DISABLE_FULLWINDOWDRAG | PERF_DISABLE_MENUANIMATIONS);

        // cbAutoReconnectCookie: 0 bytes (LE)
        buf.writeShortLE(0);

        // Trim buffer to actual length of data written
        buf.trimAtCursor();

        pushDataToOTOut(buf);
View Full Code Here

        // Header
        buf.writeBytes(new byte[] {(byte)0x5e, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x02,
                (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,});

        // Length of string in wide characters + two wide \0 (LE)
        buf.writeShortLE(data.length() + 2);

        // Wide string + two wide '\0' characters
        buf.writeString(data + "\0\0", RdpConstants.CHARSET_16);

        // Trim buffer to actual length of data written
View Full Code Here

        // 3 bits) MUST be set to FASTPATH_INPUT_EVENT_MOUSE (1). The
        // eventFlags bitfield (low 5 bits) MUST be zeroed out.
        outBuf.writeByte(FASTPATH_INPUT_EVENT_MOUSE << 5);

        // pointerFlags (2 bytes): A 16-bit, unsigned integer.
        outBuf.writeShortLE(getPointerFlags(order));

        // xPos (2 bytes): A 16-bit, unsigned integer. The x-coordinate of the
        // pointer.
        outBuf.writeShortLE(order.event.getX());
View Full Code Here

        // pointerFlags (2 bytes): A 16-bit, unsigned integer.
        outBuf.writeShortLE(getPointerFlags(order));

        // xPos (2 bytes): A 16-bit, unsigned integer. The x-coordinate of the
        // pointer.
        outBuf.writeShortLE(order.event.getX());

        // yPos (2 bytes): A 16-bit, unsigned integer. The y-coordinate of the
        // pointer.
        outBuf.writeShortLE(order.event.getY());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.