code: public static int byteBufferSizeForMessage(NDArrayMessage message) {
          int enumSize = 4;
          int nInts = 4 * message.getDimensions().length;
          int sizeofDimensionLength = 4;
          int timeStampSize = 8;
          int indexSize = 8;
          return enumSize + nInts + sizeofDimensionLength + timeStampSize + indexSize
                          + AeronNDArraySerde.byteBufferSizeFor(message.getArr());
      }
docs: Returns the size needed in bytes
  for a bytebuffer for a given ndarray message.
  The formula is:
  {@link AeronNDArraySerde#byteBufferSizeFor(INDArray)}
  + size of dimension length (4)
  + time stamp size (8)
  + index size (8)
  + 4 * message.getDimensions.length
  @param message the message to get the length for
  @return the size of the byte buffer for a message