Package streamer

Examples of streamer.ByteBuffer.writeShort()


        outBuf.writeByte(depth);
        outBuf.writeByte(bigEndianFlag);
        outBuf.writeByte(trueColourFlag);
        outBuf.writeShort(redMax);
        outBuf.writeShort(greenMax);
        outBuf.writeShort(blueMax);
        outBuf.writeByte(redShift);
        outBuf.writeByte(greenShift);
        outBuf.writeByte(blueShift);

        // Padding
View Full Code Here


        // MCS Send Data Request PDU
        buf.writeByte(0x64);

        // Initiator: 0x03 + 1001 = 1004
        buf.writeShort(3);

        // Channel ID: 1003
        buf.writeShort(1003);

        // Data priority: high, segmentation: begin | end (0x40 | 0x20 | 0x10 = 0x70)
View Full Code Here

        // Initiator: 0x03 + 1001 = 1004
        buf.writeShort(3);

        // Channel ID: 1003
        buf.writeShort(1003);

        // Data priority: high, segmentation: begin | end (0x40 | 0x20 | 0x10 = 0x70)
        buf.writeByte(0x70);

        // User data length: (variable length field)
View Full Code Here

        // Data priority: high, segmentation: begin | end (0x40 | 0x20 | 0x10 = 0x70)
        buf.writeByte(0x70);

        // User data length: (variable length field)
        int length = 224 + userName.length + password.length + alternateShell.length + domain.length + workingDir.length + clientAddress.length + clientDir.length;
        buf.writeShort(length | 0x8000);

        // Flags: SEC_INFO_PKT (0x4000)
        buf.writeShort(0x4000);

        // TS_SECURITY_HEADER::flagsHi - ignored
View Full Code Here

        // User data length: (variable length field)
        int length = 224 + userName.length + password.length + alternateShell.length + domain.length + workingDir.length + clientAddress.length + clientDir.length;
        buf.writeShort(length | 0x8000);

        // Flags: SEC_INFO_PKT (0x4000)
        buf.writeShort(0x4000);

        // TS_SECURITY_HEADER::flagsHi - ignored
        buf.writeShort(0x0000);

        // Codepage: 0 (UNKNOWN, LE) (use  0x04090409  (1033,1033) for EN_US) 
View Full Code Here

        // Flags: SEC_INFO_PKT (0x4000)
        buf.writeShort(0x4000);

        // TS_SECURITY_HEADER::flagsHi - ignored
        buf.writeShort(0x0000);

        // Codepage: 0 (UNKNOWN, LE) (use  0x04090409  (1033,1033) for EN_US) 
        buf.writeIntLE(0x0000);

        // Flags
View Full Code Here

        // Values
        //

        // Domain: (UCS2), see cbDomain
        buf.writeBytes(domain);
        buf.writeShort(0);

        // User name: (UCS2), see cbUserName
        buf.writeBytes(userName);
        buf.writeShort(0);
View Full Code Here

        buf.writeBytes(domain);
        buf.writeShort(0);

        // User name: (UCS2), see cbUserName
        buf.writeBytes(userName);
        buf.writeShort(0);

        // Password: (UCS2), see cbPassword
        buf.writeBytes(password);
        buf.writeShort(0);
View Full Code Here

        buf.writeBytes(userName);
        buf.writeShort(0);

        // Password: (UCS2), see cbPassword
        buf.writeBytes(password);
        buf.writeShort(0);

        // Alternate shell: (UCS2), see cbAlternateShell
        buf.writeBytes(alternateShell);
        buf.writeShort(0);
View Full Code Here

        buf.writeBytes(password);
        buf.writeShort(0);

        // Alternate shell: (UCS2), see cbAlternateShell
        buf.writeBytes(alternateShell);
        buf.writeShort(0);

        // Working directory: (UCS2), see cbWorkingDir
        buf.writeBytes(workingDir);
        buf.writeShort(0);
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.