public void wrap(final int streamId,final FrameType type,final ByteBuffer data){
  POOL.release(this.directBuffer);
  this.directBuffer=POOL.acquireMutableDirectBuffer(FrameHeaderFlyweight.computeFrameHeaderLength(type,0,data.remaining()));
  this.length=FrameHeaderFlyweight.encode(this.directBuffer,offset,streamId,0,type,NULL_BYTEBUFFER,data);
}

public void wrap ( final int streamId , final FrameType type , final ByteBuffer data ) { POOL . release ( this . directBuffer ) ; this . directBuffer = POOL . acquireMutableDirectBuffer ( FrameHeaderFlyweight . computeFrameHeaderLength ( type , 0 , data . remaining ( ) ) ) ; this . length = FrameHeaderFlyweight . encode ( this . directBuffer , offset , streamId , 0 , type , NULL_BYTEBUFFER , data ) ; }
mutates this frame to contain the given parameters . note : acquires a new backing buffer and releases current backing buffer
