C# 클래스 Avro.BinaryEncoder

Write leaf values.
상속: Encoder
파일 보기 프로젝트 열기: thirumg/Avro.NET

공개 프로퍼티들

프로퍼티 타입 설명
Instance BinaryEncoder

공개 메소드들

메소드 설명
SetItemCount ( Stream Stream, long value ) : void
StartItem ( Stream Stream ) : void
WriteArrayEnd ( Stream Stream ) : void
WriteArrayStart ( Stream Stream ) : void
WriteBoolean ( Stream Stream, bool datum ) : void

a boolean is written as a single byte whose value is either 0 (false) or 1 (true).

WriteBytes ( Stream Stream, byte value ) : void

Bytes are encoded as a long followed by that many bytes of data.

WriteDouble ( Stream Stream, double datum ) : void

A double is written as 8 bytes. The double is converted into a 64-bit integer using a method equivalent to Java's doubleToLongBits and then encoded in little-endian format.

WriteFloat ( Stream Stream, float datum ) : void

A float is written as 4 bytes. The float is converted into a 32-bit integer using a method equivalent to Java's floatToIntBits and then encoded in little-endian format.

WriteInt ( Stream Stream, int datum ) : void

int and long values are written using variable-length, zig-zag coding.

WriteLong ( Stream Stream, long datum ) : void

int and long values are written using variable-length, zig-zag coding.

WriteMapEnd ( Stream Stream ) : void
WriteMapStart ( Stream Stream ) : void
WriteNull ( Stream Stream ) : void

null is written as zero bytes

WriteString ( Stream Stream, string value ) : void

A string is encoded as a long followed by that many bytes of UTF-8 encoded character data.

floatToRawIntBits ( float f ) : int

비공개 메소드들

메소드 설명
write ( Stream Stream ) : void

Write leaf values.

메소드 상세

SetItemCount() 공개 메소드

public SetItemCount ( Stream Stream, long value ) : void
Stream Stream
value long
리턴 void

StartItem() 공개 메소드

public StartItem ( Stream Stream ) : void
Stream Stream
리턴 void

WriteArrayEnd() 공개 메소드

public WriteArrayEnd ( Stream Stream ) : void
Stream Stream
리턴 void

WriteArrayStart() 공개 메소드

public WriteArrayStart ( Stream Stream ) : void
Stream Stream
리턴 void

WriteBoolean() 공개 메소드

a boolean is written as a single byte whose value is either 0 (false) or 1 (true).
public WriteBoolean ( Stream Stream, bool datum ) : void
Stream Stream
datum bool
리턴 void

WriteBytes() 공개 메소드

Bytes are encoded as a long followed by that many bytes of data.
public WriteBytes ( Stream Stream, byte value ) : void
Stream Stream
value byte
리턴 void

WriteDouble() 공개 메소드

A double is written as 8 bytes. The double is converted into a 64-bit integer using a method equivalent to Java's doubleToLongBits and then encoded in little-endian format.
public WriteDouble ( Stream Stream, double datum ) : void
Stream Stream
datum double
리턴 void

WriteFloat() 공개 메소드

A float is written as 4 bytes. The float is converted into a 32-bit integer using a method equivalent to Java's floatToIntBits and then encoded in little-endian format.
public WriteFloat ( Stream Stream, float datum ) : void
Stream Stream
datum float
리턴 void

WriteInt() 공개 메소드

int and long values are written using variable-length, zig-zag coding.
public WriteInt ( Stream Stream, int datum ) : void
Stream Stream
datum int
리턴 void

WriteLong() 공개 메소드

int and long values are written using variable-length, zig-zag coding.
public WriteLong ( Stream Stream, long datum ) : void
Stream Stream
datum long
리턴 void

WriteMapEnd() 공개 메소드

public WriteMapEnd ( Stream Stream ) : void
Stream Stream
리턴 void

WriteMapStart() 공개 메소드

public WriteMapStart ( Stream Stream ) : void
Stream Stream
리턴 void

WriteNull() 공개 메소드

null is written as zero bytes
public WriteNull ( Stream Stream ) : void
Stream Stream
리턴 void

WriteString() 공개 메소드

A string is encoded as a long followed by that many bytes of UTF-8 encoded character data.
public WriteString ( Stream Stream, string value ) : void
Stream Stream
value string
리턴 void

floatToRawIntBits() 공개 정적인 메소드

public static floatToRawIntBits ( float f ) : int
f float
리턴 int

프로퍼티 상세

Instance 공개적으로 정적으로 프로퍼티

public static BinaryEncoder Instance
리턴 BinaryEncoder