Package co.nstant.in.cbor.decoder

Examples of co.nstant.in.cbor.decoder.HalfPrecisionFloatDecoder


      HalfPrecisionFloatEncoder encoder = new HalfPrecisionFloatEncoder(
          null, outputStream);
      encoder.encode(new HalfPrecisionFloat(value));
      ByteArrayInputStream inputStream = new ByteArrayInputStream(
          outputStream.toByteArray());
      HalfPrecisionFloatDecoder decoder = new HalfPrecisionFloatDecoder(
          null, inputStream);
      HalfPrecisionFloat halfPrecisionFloat = decoder.decode(0);
      return value == halfPrecisionFloat.getValue();
    } catch (CborException cborException) {
      return false;
    }
  }
View Full Code Here

TOP

Related Classes of co.nstant.in.cbor.decoder.HalfPrecisionFloatDecoder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.