Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Scala Implicit for converting numbers to Little Endian
- class RAFImplicit(raf: RandomAccessFile){
- def readShortLE() : Short = java.lang.Short.reverseBytes(raf.readShort)
- def readIntLE() : Int = java.lang.Integer.reverseBytes(raf.readInt)
- def readLongLE() : Long = java.lang.Long.reverseBytes(raf.readLong)
- implicit def HEtoLE(ra: RandomAccessFile) = new RAFImplicit(raf)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement