Examples of appendByte()


Examples of com.caucho.quercus.env.StringValue.appendByte()

        sb.appendByte(0x80 | (code & 0x3F));
      }
      else {
        sb.appendByte(0xF0 | (code >> 18));
        sb.appendByte(0x80 | ((code >> 12) & 0x3F));
        sb.appendByte(0x80 | ((code >> 6) & 0x3F));
        sb.appendByte(0x80 | (code & 0x3F));
      }
    }
   
    return sb;
View Full Code Here

Examples of com.logica.smpp.util.ByteBuffer.appendByte()

            isSubmit = false;
          } else {
            isSubmit = true;
          }
        }
        bb.appendByte(b);
      }
     
      if(isSubmit == true) {
        request = new SubmitSM();
        request.setData(bb);
View Full Code Here

Examples of com.webobjects.foundation.NSMutableData.appendByte()

      // uint64_t _numObjects;
      // uint64_t _topObject;
      // uint64_t _offsetTableOffset;
      // } CFBinaryPlistTrailer;
      theData.appendBytes(new byte[5]);
      theData.appendByte((byte) 0x0); // _sortVersion which AFIK is not being used in CF
      theData.appendByte((byte) intsize); // _offsetIntSize which byte size for all ints in file
      theData.appendByte((byte) refsize); // _objectRefSize which is total # of objects value in bytes
      theData.appendBytes(longToByteArray2(numberOfObjects, 8)); // _numObjects which is object count
      theData.appendBytes(longToByteArray2(theTopObject, 8)); // _topObject appears to be set to 0 in CF
      theData.appendBytes(longToByteArray2(offsetTableStart, 8)); // _offsetTableOffset
View Full Code Here

Examples of io.airlift.slice.SliceOutput.appendByte()

                .appendByte(1// format tag
                .appendByte(12) // p
                .appendByte(0); // baseline

        for (int i = 0; i < 1 << (12 - 1); i++) {
            expected.appendByte(0);
        }

        // overflow bucket
        expected.appendByte(0xff)
                .appendByte(0xff);
View Full Code Here

Examples of io.vertx.core.buffer.Buffer.appendByte()

         */
        @Override
        public void write(int b) throws IOException {
            checkState();
            Buffer buffer = Buffer.buffer();
            buffer.appendByte((byte) b);
            response.write(buffer);
        }

        /**
         * {@inheritDoc}
 
View Full Code Here

Examples of org.apache.ajp.Ajp13Packet.appendByte()

        Ajp13Packet p = new Ajp13Packet(Ajp13.MAX_PACKET_SIZE);
        p.appendInt(0x1234);
        p.appendInt(0);
        p.setByteOff(4);
        p.appendByte(RequestHandler.JK_AJP13_FORWARD_REQUEST);
        p.appendByte((byte)2);
        p.appendString("http");
        p.appendString("/test_uri");
        p.appendString("remote_addr");
        p.appendString("remote_host");
View Full Code Here

Examples of org.apache.ajp.Ajp13Packet.appendByte()

        Ajp13Packet p = new Ajp13Packet(Ajp13.MAX_PACKET_SIZE);
        p.appendInt(0x1234);
        p.appendInt(0);
        p.setByteOff(4);
        p.appendByte(RequestHandler.JK_AJP13_FORWARD_REQUEST);
        p.appendByte((byte)2);
        p.appendString("http");
        p.appendString("/test_uri");
        p.appendString("remote_addr");
        p.appendString("remote_host");
        p.appendString("server_name");
View Full Code Here

Examples of org.apache.ajp.Ajp13Packet.appendByte()

        p.appendString("my header value");
        p.appendInt((0xA0 << 8) + RequestHandler.SC_REQ_AUTHORIZATION);
        p.appendString("some auth string");
        p.appendInt((0xA0 << 8) + RequestHandler.SC_REQ_USER_AGENT);
        p.appendString("TestAjp13 User Agent");
        p.appendByte(RequestHandler.SC_A_ARE_DONE);

        int len = p.getByteOff() - 4;
        p.setByteOff(2);
        p.appendInt(len);
View Full Code Here

Examples of org.apache.jk.common.MsgAjp.appendByte()

                thisTime=chunkSize;
            }
            len-=thisTime;
           
            msg.reset();
            msg.appendByte( HandlerRequest.JK_AJP13_SEND_BODY_CHUNK);
            if( log.isDebugEnabled() ) log.debug("doWrite " + off + " " + thisTime + " " + len );
            msg.appendBytes( chunk.getBytes(), chunk.getOffset() + off, thisTime );
            off+=thisTime;
            ep.setType( JkHandler.HANDLE_SEND_PACKET );
            ep.getSource().send( msg, ep );
View Full Code Here

Examples of org.apache.jk.common.MsgAjp.appendByte()

        }
       
        MsgContext ep=(MsgContext)res.getNote( epNote );
        MsgAjp msg=(MsgAjp)ep.getNote( headersMsgNote );
        msg.reset();
        msg.appendByte(HandlerRequest.JK_AJP13_SEND_HEADERS);
        msg.appendInt( res.getStatus() );
       
        MessageBytes mb=(MessageBytes)ep.getNote( tmpMessageBytesNote );
        if( mb==null ) {
            mb=new MessageBytes();
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.