Examples of trimAtCursor()


Examples of streamer.ByteBuffer.trimAtCursor()

        // Body
        ByteBuffer buf = new ByteBuffer(1024, true);
        numberCapabilities = 0;
        writeCapabilities(buf);
        buf.trimAtCursor();

        // Header
        ByteBuffer header = createMCSHeader(buf);

        // Length of source descriptor, including NULL character (LE)
View Full Code Here

Examples of streamer.ByteBuffer.trimAtCursor()

        header.writeShortLE(numberCapabilities);

        // Padding 2 bytes
        header.writeShortLE(0);

        header.trimAtCursor();

        // Prepend header to capabilities
        buf.prepend(header);

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

Examples of streamer.ByteBuffer.trimAtCursor()

                    (byte)0x32, (byte)0x00,
            });
            /* @formatter:on */

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

            pushDataToPad(STDOUT, buf);
        }
    }

View Full Code Here

Examples of streamer.ByteBuffer.trimAtCursor()

                (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
        });
        /* @formatter:on */

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

        pushDataToPad(STDOUT, buf);
    }

    private void sendControlPDUActionCooperate() {
View Full Code Here

Examples of streamer.ByteBuffer.trimAtCursor()

                // controlId: 0
                (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
        });
        /* @formatter:on */

        buf.trimAtCursor();

        pushDataToPad(STDOUT, buf);
    }

    private void sendSynchronizePDU() {
View Full Code Here

Examples of streamer.ByteBuffer.trimAtCursor()

                (byte)0x01, (byte)0x00,
                // targetUser: 0x03ea
                (byte)0xea, (byte)0x03,
        });
        /* @formatter:on */
        buf.trimAtCursor();
        pushDataToPad(STDOUT, buf);
    }

    private void writeCapabilities(ByteBuffer buf) {
        writeGeneralCS(buf);
View Full Code Here

Examples of streamer.ByteBuffer.trimAtCursor()

////       SupportFIPS:   (...........................0....) Not Support FIPS Compliant
////       Reserved2:     (000000000000000000000000000.....)
//    });
        /* @formatter:on */

        buf.trimAtCursor();

        pushDataToOTOut(buf);

        switchOff();
    }
View Full Code Here

Examples of streamer.ByteBuffer.trimAtCursor()

        data.writeByte(0x4);

        // Length of full packet, including length field, in network order.
        // Topmost bit of first byte indicates that field has 2 bytes
        data.writeShort((1 + 2 + buf.length) | 0x8000);
        data.trimAtCursor();

        buf.prepend(data);

        pushDataToAllOuts(buf);
    }
View Full Code Here

Examples of streamer.ByteBuffer.trimAtCursor()

                (byte)0xea, (byte)0x03,
        });
        /* @formatter:on */

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

        pushDataToOTOut(buf);

        switchOff();
    }
View Full Code Here

Examples of streamer.ByteBuffer.trimAtCursor()

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

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

        pushDataToOTOut(buf);

        switchOff();
    }
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.