code: function (geoTiffData, byteOffset, numOfBytes, sampleFormat, isLittleEndian) {
                  var res;
  
                  switch (sampleFormat) {
                      case TiffConstants.SampleFormat.UNSIGNED:
                          res = this.getBytes(geoTiffData, byteOffset, numOfBytes, isLittleEndian, false);
                          break;
                      case TiffConstants.SampleFormat.SIGNED:
                          res = this.getBytes(geoTiffData, byteOffset, numOfBytes, isLittleEndian, true);
                          break;
                      case TiffConstants.SampleFormat.IEEE_FLOAT:
                          if (numOfBytes == 3) {
                              res = geoTiffData.getFloat32(byteOffset, isLittleEndian) >>> 8;
                          } else if (numOfBytes == 4) {
                              res = geoTiffData.getFloat32(byteOffset, isLittleEndian);
                          } else if (numOfBytes == 8) {
                              res = geoTiffData.getFloat64(byteOffset, isLittleEndian);
                          }
                          else {
                              Logger.log(Logger.LEVEL_WARNING, "Do not attempt to parse the data  not handled: " +
                                  numOfBytes);
                          }
                          break;
                      case TiffConstants.SampleFormat.UNDEFINED:
                      default:
                          res = this.getBytes(geoTiffData, byteOffset, numOfBytes, isLittleEndian, false);
                          break;
                  }
  
                  return res;
              }
docs: Get sample value from an arraybuffer depending on the sample format. Internal use only.