code: public FromHostPrimitiveResult < T > fromHost(Class < T > javaClass,
              CobolContext cobolContext, byte[] hostData, int start) {
  
          int hostBytesLen = getBytesLen();
          if (hostData.length < start + hostBytesLen) {
              return new FromHostPrimitiveResult < T >("Length provided "
                      + (hostData.length - start)
                      + " is smaller than the required " + hostBytesLen, hostData,
                      start, hostBytesLen);
          }
  
          FromHostPrimitiveResult < T > result = fromHostInternal(javaClass,
                  cobolContext, hostData, start);
          if (result.isSuccess()) {
              if (!isWithinRange(result.getValue())) {
                  return new FromHostPrimitiveResult < T >("Value "
                          + result.getValue().toString()
                          + " is outside the required range "
                          + getRangeAsString(), hostData, start, hostBytesLen);
              }
          }
  
          return result;
      }
docs: {@inheritDoc}