Examples of FloatBuffer


Examples of java.nio.FloatBuffer

  }

  /** Bulk output of a float array. */
  public void writeFloats (float[] object) throws KryoException {
    if (capacity - position >= object.length * 4 && isNativeOrder()) {
      FloatBuffer buf = niobuffer.asFloatBuffer();
      buf.put(object);
      position += object.length * 4;
    } else
      super.writeFloats(object);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.