All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openlr.binary.writer.OffsetWriter Maven / Gradle / Ivy

The newest version!
package org.openlr.binary.writer;

import java.io.ByteArrayOutputStream;
import java.io.IOException;

class OffsetWriter {
    void write(double value, ByteArrayOutputStream outputStream) throws IOException {
        byte b = (byte) Math.floor(value * 256);
        outputStream.write(new byte[] { b });
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy