apps/bmp/protocol/src/main/java/org/onosproject/bmp/bmpio/types/BmpHeader.java
/**
     * Writes Byte stream of BMP header to channel buffer.
     *
     * @param cb ChannelBuffer
     * @return length index of message header
     */
Writes Byte stream of BMP header to channel buffer.
@param cb ChannelBuffer
@return length index of message header
Writes Byte stream of BMP header to channel buffer . @param cb ChannelBuffer @return length index of message header
public int write(ChannelBuffer cb) {
        int headerLenIndex = cb.writerIndex();
        cb.writeByte(version);
        cb.writeByte(msgLength);
        cb.writeByte(msgType);
        return headerLenIndex;
    }
public int write ( ChannelBuffer cb ) { int headerLenIndex = cb . writerIndex ( ) ; cb . writeByte ( version ) ; cb . writeByte ( msgLength ) ; cb . writeByte ( msgType ) ; return headerLenIndex ; }
Writes Byte stream of BMP header to channel buffer.
Writes Byte stream of BMP header to channel buffer .