C# Class Fan.Sys.Buf

Buf
Inheritance: FanObj
Show file Open project: xored/f4 Class Usage Examples

Public Methods

Method Description
@in ( ) : InStream
@out ( ) : OutStream
@typeof ( ) : Type
capacity ( ) : long
capacity ( long c ) : void
charset ( ) : Charset
charset ( Charset charset ) : void
clear ( ) : Buf
close ( ) : bool
dup ( ) : Buf
eachLine ( Func f ) : void
endian ( ) : Endian
endian ( Endian endian ) : void
fill ( long b, long times ) : Buf
flip ( ) : Buf
flush ( ) : Buf
fromBase64 ( string s ) : Buf
fromHex ( string s ) : Buf
get ( long pos ) : long
getRange ( Range range ) : Buf
hmac ( String algorithm, Buf key ) : Buf
isEmpty ( ) : bool
make ( ) : Buf
make ( long capacity ) : Buf
more ( ) : bool
peek ( ) : Long
peekChar ( ) : Long
pos ( ) : long
print ( object obj ) : Buf
printLine ( ) : Buf
printLine ( object obj ) : Buf
random ( long s ) : Buf
read ( ) : Long
readAllBuf ( ) : Buf
readAllLines ( ) : List
readAllStr ( ) : string
readAllStr ( bool normalizeNewlines ) : string
readBool ( ) : bool
readBuf ( Buf other, long n ) : Long
readBufFully ( Buf buf, long n ) : Buf
readChar ( ) : Long
readChars ( long n ) : string
readDecimal ( ) : BigDecimal
readF4 ( ) : double
readF8 ( ) : double
readLine ( ) : string
readLine ( Long max ) : string
readObj ( ) : object
readObj ( Map opt ) : object
readProps ( ) : Map
readS1 ( ) : long
readS2 ( ) : long
readS4 ( ) : long
readS8 ( ) : long
readStrToken ( ) : string
readStrToken ( Long max ) : string
readStrToken ( Long max, Func f ) : string
readU1 ( ) : long
readU2 ( ) : long
readU4 ( ) : long
readUtf ( ) : string
remaining ( ) : long
seek ( long pos ) : Buf
set ( long pos, long b ) : Buf
size ( ) : long
size ( long s ) : void
toBase64 ( ) : string
toDigest ( string algorithm ) : Buf
toHex ( ) : string
toStr ( ) : string
trim ( ) : Buf
unread ( long n ) : Buf
unreadChar ( long c ) : Buf
write ( long b ) : Buf
writeBool ( bool x ) : Buf
writeBuf ( Buf other ) : Buf
writeBuf ( Buf other, long n ) : Buf
writeChar ( long c ) : Buf
writeChars ( string s ) : Buf
writeChars ( string s, long off ) : Buf
writeChars ( string s, long off, long len ) : Buf
writeDecimal ( BigDecimal x ) : Buf
writeF4 ( double x ) : Buf
writeF8 ( double x ) : Buf
writeI2 ( long x ) : Buf
writeI4 ( long x ) : Buf
writeI8 ( long x ) : Buf
writeObj ( object obj ) : Buf
writeObj ( object obj, Map opt ) : Buf
writeProps ( Map props ) : Buf
writeUtf ( string x ) : Buf
writeXml ( string s ) : Buf
writeXml ( string s, long flags ) : Buf

Private Methods

Method Description
Buf ( ) : System
getByte ( long pos ) : int
getBytes ( long pos, byte dst, int off, int len ) : void
getPos ( ) : long
getSize ( ) : long
pipeFrom ( Stream src, long len ) : long
pipeFrom ( byte src, int srcPos, int len ) : void
pipeTo ( Stream dst, long len ) : void
pipeTo ( byte dst, int dstPos, int len ) : void
setByte ( long pos, int x ) : void
setPos ( long x ) : void
setSize ( long x ) : void

Method Details

@in() public method

public @in ( ) : InStream
return InStream

@out() public method

public @out ( ) : OutStream
return OutStream

@typeof() public method

public @typeof ( ) : Type
return Type

capacity() public method

public capacity ( ) : long
return long

capacity() public method

public capacity ( long c ) : void
c long
return void

charset() public method

public charset ( ) : Charset
return Charset

charset() public method

public charset ( Charset charset ) : void
charset Charset
return void

clear() public method

public clear ( ) : Buf
return Buf

close() public method

public close ( ) : bool
return bool

dup() public method

public dup ( ) : Buf
return Buf

eachLine() public method

public eachLine ( Func f ) : void
f Func
return void

endian() public method

public endian ( ) : Endian
return Endian

endian() public method

public endian ( Endian endian ) : void
endian Endian
return void

fill() public method

public fill ( long b, long times ) : Buf
b long
times long
return Buf

flip() public method

public flip ( ) : Buf
return Buf

flush() public method

public flush ( ) : Buf
return Buf

fromBase64() public static method

public static fromBase64 ( string s ) : Buf
s string
return Buf

fromHex() public static method

public static fromHex ( string s ) : Buf
s string
return Buf

get() public method

public get ( long pos ) : long
pos long
return long

getRange() public method

public getRange ( Range range ) : Buf
range Range
return Buf

hmac() public method

public hmac ( String algorithm, Buf key ) : Buf
algorithm String
key Buf
return Buf

isEmpty() public method

public isEmpty ( ) : bool
return bool

make() public static method

public static make ( ) : Buf
return Buf

make() public static method

public static make ( long capacity ) : Buf
capacity long
return Buf

more() public method

public more ( ) : bool
return bool

peek() public method

public peek ( ) : Long
return Long

peekChar() public method

public peekChar ( ) : Long
return Long

pos() public method

public pos ( ) : long
return long

print() public method

public print ( object obj ) : Buf
obj object
return Buf

printLine() public method

public printLine ( ) : Buf
return Buf

printLine() public method

public printLine ( object obj ) : Buf
obj object
return Buf

random() public static method

public static random ( long s ) : Buf
s long
return Buf

read() public method

public read ( ) : Long
return Long

readAllBuf() public method

public readAllBuf ( ) : Buf
return Buf

readAllLines() public method

public readAllLines ( ) : List
return List

readAllStr() public method

public readAllStr ( ) : string
return string

readAllStr() public method

public readAllStr ( bool normalizeNewlines ) : string
normalizeNewlines bool
return string

readBool() public method

public readBool ( ) : bool
return bool

readBuf() public method

public readBuf ( Buf other, long n ) : Long
other Buf
n long
return Long

readBufFully() public method

public readBufFully ( Buf buf, long n ) : Buf
buf Buf
n long
return Buf

readChar() public method

public readChar ( ) : Long
return Long

readChars() public method

public readChars ( long n ) : string
n long
return string

readDecimal() public method

public readDecimal ( ) : BigDecimal
return BigDecimal

readF4() public method

public readF4 ( ) : double
return double

readF8() public method

public readF8 ( ) : double
return double

readLine() public method

public readLine ( ) : string
return string

readLine() public method

public readLine ( Long max ) : string
max Long
return string

readObj() public method

public readObj ( ) : object
return object

readObj() public method

public readObj ( Map opt ) : object
opt Map
return object

readProps() public method

public readProps ( ) : Map
return Map

readS1() public method

public readS1 ( ) : long
return long

readS2() public method

public readS2 ( ) : long
return long

readS4() public method

public readS4 ( ) : long
return long

readS8() public method

public readS8 ( ) : long
return long

readStrToken() public method

public readStrToken ( ) : string
return string

readStrToken() public method

public readStrToken ( Long max ) : string
max Long
return string

readStrToken() public method

public readStrToken ( Long max, Func f ) : string
max Long
f Func
return string

readU1() public method

public readU1 ( ) : long
return long

readU2() public method

public readU2 ( ) : long
return long

readU4() public method

public readU4 ( ) : long
return long

readUtf() public method

public readUtf ( ) : string
return string

remaining() public method

public remaining ( ) : long
return long

seek() public method

public seek ( long pos ) : Buf
pos long
return Buf

set() public method

public set ( long pos, long b ) : Buf
pos long
b long
return Buf

size() public method

public size ( ) : long
return long

size() public method

public size ( long s ) : void
s long
return void

toBase64() public method

public toBase64 ( ) : string
return string

toDigest() public method

public toDigest ( string algorithm ) : Buf
algorithm string
return Buf

toHex() public method

public toHex ( ) : string
return string

toStr() public method

public toStr ( ) : string
return string

trim() public method

public trim ( ) : Buf
return Buf

unread() public method

public unread ( long n ) : Buf
n long
return Buf

unreadChar() public method

public unreadChar ( long c ) : Buf
c long
return Buf

write() public method

public write ( long b ) : Buf
b long
return Buf

writeBool() public method

public writeBool ( bool x ) : Buf
x bool
return Buf

writeBuf() public method

public writeBuf ( Buf other ) : Buf
other Buf
return Buf

writeBuf() public method

public writeBuf ( Buf other, long n ) : Buf
other Buf
n long
return Buf

writeChar() public method

public writeChar ( long c ) : Buf
c long
return Buf

writeChars() public method

public writeChars ( string s ) : Buf
s string
return Buf

writeChars() public method

public writeChars ( string s, long off ) : Buf
s string
off long
return Buf

writeChars() public method

public writeChars ( string s, long off, long len ) : Buf
s string
off long
len long
return Buf

writeDecimal() public method

public writeDecimal ( BigDecimal x ) : Buf
x BigDecimal
return Buf

writeF4() public method

public writeF4 ( double x ) : Buf
x double
return Buf

writeF8() public method

public writeF8 ( double x ) : Buf
x double
return Buf

writeI2() public method

public writeI2 ( long x ) : Buf
x long
return Buf

writeI4() public method

public writeI4 ( long x ) : Buf
x long
return Buf

writeI8() public method

public writeI8 ( long x ) : Buf
x long
return Buf

writeObj() public method

public writeObj ( object obj ) : Buf
obj object
return Buf

writeObj() public method

public writeObj ( object obj, Map opt ) : Buf
obj object
opt Map
return Buf

writeProps() public method

public writeProps ( Map props ) : Buf
props Map
return Buf

writeUtf() public method

public writeUtf ( string x ) : Buf
x string
return Buf

writeXml() public method

public writeXml ( string s ) : Buf
s string
return Buf

writeXml() public method

public writeXml ( string s, long flags ) : Buf
s string
flags long
return Buf