AbstractFileReader

dotty.tools.dotc.core.classfile.AbstractFileReader
final class AbstractFileReader(val buf: Array[Byte]) extends DataReader

This class reads files byte per byte. Only used by ClassFileParser

Attributes

Authors:

Philippe Altherr

Version

1.0, 23/03/2004

Graph
Supertypes
trait DataReader
class Object
trait Matchable
class Any

Members list

Value members

Constructors

def this(file: AbstractFile)

Concrete methods

def byteAt(pos: Int): Byte

return byte at offset 'pos'

return byte at offset 'pos'

Attributes

def getByte(mybp: Int): Byte

extract a byte at position bp from buf

extract a byte at position bp from buf

Attributes

def getBytes(mybp: Int, bytes: Array[Byte]): Unit
def getChar(mybp: Int): Char

extract a character at position bp from buf

extract a character at position bp from buf

Attributes

def getDouble(mybp: Int): Double

extract a double at position bp from buf

extract a double at position bp from buf

Attributes

def getFloat(mybp: Int): Float

extract a float at position bp from buf

extract a float at position bp from buf

Attributes

def getInt(mybp: Int): Int

extract an integer at position bp from buf

extract an integer at position bp from buf

Attributes

def getLong(mybp: Int): Long

extract a long integer at position bp from buf

extract a long integer at position bp from buf

Attributes

def getUTF(mybp: Int, len: Int): String
def nextByte: Byte

read a byte

read a byte

Attributes

def nextBytes(len: Int): Array[Byte]

read some bytes

read some bytes

Attributes

def nextChar: Char

read a character

read a character

Attributes

def nextInt: Int

read an integer

read an integer

Attributes

def skip(n: Int): Unit

skip next 'n' bytes

skip next 'n' bytes

Attributes

Concrete fields

var bp: Int

the current input pointer

the current input pointer

Attributes

val buf: Array[Byte]