Examples of buf()


Examples of org.apache.mina.core.buffer.IoBuffer.buf()

        }
        else
        {
            if ( message instanceof ChangePasswordError )
            {
                errorEncoder.encode( buf.buf(), ( ChangePasswordError ) message );
            }
        }

        // mark position
        int pos = buf.position();
View Full Code Here

Examples of org.apache.mina.core.buffer.IoBuffer.buf()

    public void encode( IoSession session, Object message, ProtocolEncoderOutput out )
    {
        NtpMessageEncoder encoder = new NtpMessageEncoder();

        IoBuffer buf = IoBuffer.allocate( 1024 );
        encoder.encode( buf.buf(), ( NtpMessage ) message );

        buf.flip();

        out.write( buf );
    }
View Full Code Here

Examples of org.red5.io.amf.Output.buf()

    IMetaCue cp = (MetaCue<?, ?>) cue;
    Output out = new Output(IoBuffer.allocate(1000));
    Serializer.serialize(out, "onCuePoint");
    Serializer.serialize(out, cp);

    IoBuffer tmpBody = out.buf().flip();
    int tmpBodySize = out.buf().limit();
    //int tmpPreviousTagSize = tag.getPreviousTagSize();
    int tmpTimestamp = getTimeInMilliseconds(cp);

    //return new Tag(tmpDataType, tmpTimestamp, tmpBodySize, tmpBody, tmpPreviousTagSize);
View Full Code Here

Examples of zmq.Msg.buf()

        assertTrue(status.hasMore());
        assertEquals(100, status.data()[0]);

        Msg oldest = sock.base().recv(0);
        assertFalse(oldest.hasMore());
        assertEquals(infos[0].start(), oldest.buf().getLong());

        //  Latest offset
        sock.sendMore("OFFSET");
        sock.send(ByteBuffer.allocate(8).putLong(-1).array());
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.