question: private ByteBuffer clientRequestPacket ( GridClientMessage msg ) throws IOException { ByteBuffer res = marshaller . marshal ( msg , 45 ) ; ByteBuffer slice = res . slice ( ) ; slice . put ( IGNITE_REQ_FLAG ) ; slice . putInt ( res . remaining ( ) - 5 ) ; slice . putLong ( msg . requestId ( ) ) ; slice . put ( U . uuidToBytes ( msg . clientId ( ) ) ) ; slice . put ( U . uuidToBytes ( msg . destinationId ( ) ) ) ; return res ; }
target:  Assembles Ignite client packet.