BinaryIO

org.appliedtopology.tda4j.BinaryIO
object BinaryIO

Shared little-endian binary primitives for the binary file formats this package reads/writes (Ripser's packed distance-matrix format, DIPHA's binary container format). Every such format is little-endian on disk regardless of host byte order -- confirmed directly against both projects' own source (Ripser's read reverses bytes only if (is_big_endian), i.e. the file itself is always little-endian; DIPHA's own README states "little-endian binary format" outright) -- so ByteBuffer.order(LITTLE_ENDIAN) is used unconditionally here rather than detecting host order, matching both.

Attributes

Experimental
true
Source
BinaryIO.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
BinaryIO.type

Members list

Value members

Concrete methods

def newBufferLE(byteSize: Int): ByteBuffer

Attributes

Source
BinaryIO.scala
def readAllLE(path: String): ByteBuffer

Attributes

Source
BinaryIO.scala
def wrapLE(bytes: Array[Byte]): ByteBuffer

Attributes

Source
BinaryIO.scala
def writeLE(path: String, buffer: ByteBuffer): Unit

Attributes

Source
BinaryIO.scala