Package deepboof.io.torch7
Class ParseBinaryTorch7
java.lang.Object
deepboof.io.torch7.ParseTorch7
deepboof.io.torch7.ParseBinaryTorch7
Parser for binary Torch 7 serialized objects.
-
Field Summary
Fields inherited from class deepboof.io.torch7.ParseTorch7
input, masterTable, stream, verbose -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.ParseBinaryTorch7(boolean littleEndian) Constructor which allows you to configure byte order -
Method Summary
Modifier and TypeMethodDescriptionvoidreadArrayByte(int size, byte[] storage) voidreadArrayChar(int size, char[] storage) voidreadArrayDouble(int size, double[] storage) voidreadArrayFloat(int size, float[] storage) voidreadArrayLong(int size, long[] storage) booleandoublefloatintreadS32()longreadS64()int[]readShape(int dimension) readType()intreadU8()Methods inherited from class deepboof.io.torch7.ParseTorch7
isVerbose, parse, parseIntoBoof, parseOne, setVerbose, stringToVersionNumber
-
Constructor Details
-
ParseBinaryTorch7
public ParseBinaryTorch7(boolean littleEndian) Constructor which allows you to configure byte order- Parameters:
littleEndian- true if it was written on a system in little endian byte order or false for big endian.
-
ParseBinaryTorch7
public ParseBinaryTorch7()Default constructor. Little endian byte order.
-
-
Method Details
-
readShape
- Specified by:
readShapein classParseTorch7- Throws:
IOException
-
readType
- Specified by:
readTypein classParseTorch7- Throws:
IOException
-
readBoolean
- Specified by:
readBooleanin classParseTorch7- Throws:
IOException
-
readDouble
- Specified by:
readDoublein classParseTorch7- Throws:
IOException
-
readFloat
- Specified by:
readFloatin classParseTorch7- Throws:
IOException
-
readString
- Specified by:
readStringin classParseTorch7- Throws:
IOException
-
readS64
- Specified by:
readS64in classParseTorch7- Throws:
IOException
-
readS32
- Specified by:
readS32in classParseTorch7- Throws:
IOException
-
readU8
- Specified by:
readU8in classParseTorch7- Throws:
IOException
-
readArrayDouble
- Specified by:
readArrayDoublein classParseTorch7- Throws:
IOException
-
readArrayFloat
- Specified by:
readArrayFloatin classParseTorch7- Throws:
IOException
-
readArrayChar
- Specified by:
readArrayCharin classParseTorch7- Throws:
IOException
-
readArrayLong
- Specified by:
readArrayLongin classParseTorch7- Throws:
IOException
-
readArrayByte
- Specified by:
readArrayBytein classParseTorch7- Throws:
IOException
-