Class InputMeta
Helper class to read nt, short, words, etc. from an InputStream.
public class InputMeta
- Inheritance
-
InputMeta
- Inherited Members
Constructors
InputMeta(Stream)
Creates an InputMeta object.
public InputMeta(Stream @in)
Parameters
in
StreamInputStream containing the WMF data
Methods
GetLength()
Get the amount of bytes read and/or skipped from the InputStream.
public virtual int GetLength()
Returns
- int
number of bytes read
ReadByte()
Read the next byte from the InputStream.
public virtual int ReadByte()
Returns
- int
the next byte
ReadColor()
Read the next Color from the InputStream.
public virtual Color ReadColor()
Returns
- Color
the next Color
Remarks
Read the next Color from the InputStream. This reads 4 bytes.
ReadInt()
Read the next int from the InputStream.
public virtual int ReadInt()
Returns
- int
the next int
ReadShort()
Read the next short from the InputStream.
public virtual int ReadShort()
Returns
- int
the next short value
ReadWord()
Read the next word from the InputStream.
public virtual int ReadWord()
Returns
- int
the next word or 0 if the end of the stream has been reached
Skip(int)
Skips "len" amount of bytes from the InputStream.
public virtual void Skip(int len)
Parameters
len
intamount of bytes needed to skip
Remarks
Skips "len" amount of bytes from the InputStream. If len is < 0, nothing is skipped.