Examples of markEnd()


Examples of com.lixia.rdp.Package.RdpPackage.markEnd()

        data.setLittleEndian32(time);
        data.setLittleEndian16(message_type);
        data.setLittleEndian16(device_flags);
        data.setLittleEndian16(param1);
        data.setLittleEndian16(param2);
        data.markEnd();
        // logger.info("input");
        // if(logger.isInfoEnabled()) logger.info(data);
        try {
            this.sendData(data, RDP_DATA_PDU_INPUT);
        } catch (RdesktopException r) {
View Full Code Here

Examples of com.lixia.rdp.Package.RdpPackage.markEnd()

        data.setLittleEndian16(seq); /* unknown */

        data.setLittleEndian16(0x32); /* entry size */

        data.markEnd();
//        logger.debug("fonts");
        this.sendData(data, RDP_DATA_PDU_FONT2);
    }

    private void processPointer(RdpPackage data) throws RdesktopException {
View Full Code Here

Examples of com.lixia.rdp.Package.RdpPackage.markEnd()

        data.copyFromByteArray(crypt_hwid, 0, data.getPosition(), LICENCE_HWID_SIZE);
        data.incrementPosition(LICENCE_HWID_SIZE);

        data.copyFromByteArray(signature, 0, data.getPosition(), LICENCE_SIGNATURE_SIZE);
        data.incrementPosition(LICENCE_SIGNATURE_SIZE);
        data.markEnd();
        secure.send(data, sec_flags);
    }

    /**
     * Present a licence to the server
View Full Code Here

Examples of com.lixia.rdp.Package.RdpPackage.markEnd()

            dump.encode(packet, "RECEIVE" /*System.out*/);
        }
        if (p == null) {
            buffer = new RdpPackage(length);
            buffer.copyFromByteArray(packet, 0, 0, packet.length);
            buffer.markEnd(length);
            buffer.setStart(buffer.getPosition());
        } else {
            buffer = new RdpPackage((p.getEnd() - p.getStart())
                    + length);
            buffer.copyFromPacket(p, p.getStart(), 0, p.getEnd());
View Full Code Here

Examples of com.lixia.rdp.Package.RdpPackage.markEnd()

        } else {
            buffer = new RdpPackage((p.getEnd() - p.getStart())
                    + length);
            buffer.copyFromPacket(p, p.getStart(), 0, p.getEnd());
            buffer.copyFromByteArray(packet, 0, p.getEnd(), packet.length);
            buffer.markEnd(p.size() + packet.length);
            buffer.setPosition(p.getPosition());
            buffer.setStart(0);
        }
        return buffer;
    }
View Full Code Here

Examples of org.jboss.classfilewriter.util.LazySize.markEnd()

                for (ClassAnnotation annotation : ans) {
                    annotation.write(stream);
                }
            }
        }
        sizeMarker.markEnd();
    }

    public void addAnnotation(int parameter, Annotation annotation) {
        if (!annotations.containsKey(parameter)) {
            annotations.put(parameter, new ArrayList<ClassAnnotation>());
View Full Code Here

Examples of org.jboss.classfilewriter.util.LazySize.markEnd()

        LazySize sizeMarker = stream.writeSize();
        stream.writeShort(annotations.size());
        for (ClassAnnotation annotation : annotations) {
            annotation.write(stream);
        }
        sizeMarker.markEnd();
    }

    public void addAnnotation(Annotation annotation) {
        annotations.add(AnnotationBuilder.createAnnotation(constPool, annotation));
    }
View Full Code Here

Examples of org.jboss.classfilewriter.util.LazySize.markEnd()

                writeSameLocals1Stack(stream, offset, lastPos, frame);
            } else {
                writeFullFrame(stream, offset, lastPos, entry.getValue());
            }
        }
        size.markEnd();
    }

    private void writeSameLocals1Stack(DataOutputStream dstream, int offset, int lastPos, StackFrame frame) throws IOException {
        dstream.writeByte(offset + 64);
        frame.getStackState().getContents().get(0).write(dstream);
View Full Code Here

Examples of org.jboss.classfilewriter.util.LazySize.markEnd()

        }
        stream.writeShort(attributes.size()); // attributes count
        for (Attribute attribute : attributes) {
            attribute.write(stream);
        }
        size.markEnd();;
    }

    // -------------------------------------------
    // Instruction methods, in alphabetical order
View Full Code Here

Examples of org.jboss.classfilewriter.util.LazySize.markEnd()

                writeSameLocals1Stack(stream, offset, lastPos, frame);
            } else {
                writeFullFrame(stream, offset, lastPos, entry.getValue());
            }
        }
        size.markEnd();
    }

    private void writeSameLocals1Stack(DataOutputStream dstream, int offset, int lastPos, StackFrame frame) throws IOException {
        dstream.writeByte(offset + 64);
        frame.getStackState().getContents().get(0).write(dstream);
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.