com.h3c.of.lib.msg

## Class MessageUtils

- java.lang.Object
- - com.h3c.of.lib.msg.MessageUtils

-     public class MessageUtils
      extends Object

  Provides utility methods for working with OpenFlow messages.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MessageUtils()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static byte[]` | `getPacketBytes(OfmMutablePacketOut mpo)` Returns a reference to the backing byte array of packet data in a mutable packet out message.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### MessageUtils

          public MessageUtils()

  - ### Method Detail

    - #### getPacketBytes

          public static byte[] getPacketBytes(OfmMutablePacketOut mpo)

      Returns a reference to the backing byte array of packet data in a mutable packet out message. Note that this renders null and void the guarantee of immutability of the `OfmPacketOut` message, since we are handing out a reference to the backing byte array of the packet data.
      Parameters:
        `mpo` - mutable packet out
      Returns:
        a reference to the backing data

Copyright © 2014. All Rights Reserved.