C# Class Org.BouncyCastle.Crypto.Tls.TlsUtilities

Some helper fuctions for MicroTLS.
Datei anzeigen Open project: bcgit/bc-csharp Class Usage Examples

Public Properties

Property Type Description
EmptyBytes byte[]
EmptyInts int[]
EmptyLongs long[]
EmptyShorts short[]

Public Methods

Method Description
AddSignatureAlgorithmsExtension ( IDictionary extensions, IList supportedSignatureAlgorithms ) : void
CheckUint16 ( int i ) : void
CheckUint16 ( long i ) : void
CheckUint24 ( int i ) : void
CheckUint24 ( long i ) : void
CheckUint32 ( long i ) : void
CheckUint48 ( long i ) : void
CheckUint64 ( long i ) : void
CheckUint8 ( int i ) : void
CheckUint8 ( long i ) : void
CloneHash ( byte hashAlgorithm, IDigest hash ) : IDigest
ClonePrfHash ( int prfAlgorithm, IDigest hash ) : IDigest
CreateHash ( Org.BouncyCastle.Crypto.Tls.SignatureAndHashAlgorithm signatureAndHashAlgorithm ) : IDigest
CreateHash ( byte hashAlgorithm ) : IDigest
CreatePrfHash ( int prfAlgorithm ) : IDigest
CreateSignatureAlgorithmsExtension ( IList supportedSignatureAlgorithms ) : byte[]
CreateTlsSigner ( byte clientCertificateType ) : TlsSigner
EncodeOpaque8 ( byte buf ) : byte[]
EncodeSupportedSignatureAlgorithms ( IList supportedSignatureAlgorithms, bool allowAnonymous, Stream output ) : void
EncodeUint16ArrayWithUint16Length ( int uints ) : byte[]
EncodeUint8ArrayWithUint8Length ( byte uints ) : byte[]
GetCipherType ( int ciphersuite ) : int
GetDefaultDssSignatureAlgorithms ( ) : IList
GetDefaultECDsaSignatureAlgorithms ( ) : IList
GetDefaultRsaSignatureAlgorithms ( ) : IList
GetDefaultSupportedSignatureAlgorithms ( ) : IList
GetEncryptionAlgorithm ( int ciphersuite ) : int
GetExtensionData ( IDictionary extensions, int extensionType ) : byte[]
GetHashAlgorithmForPrfAlgorithm ( int prfAlgorithm ) : byte
GetKeyExchangeAlgorithm ( int ciphersuite ) : int
GetMacAlgorithm ( int ciphersuite ) : int
GetMinimumVersion ( int ciphersuite ) : Org.BouncyCastle.Crypto.Tls.ProtocolVersion
GetOidForHashAlgorithm ( byte hashAlgorithm ) : DerObjectIdentifier
GetSignatureAlgorithmsExtension ( IDictionary extensions ) : IList
GetSignatureAndHashAlgorithm ( TlsContext context, TlsSignerCredentials signerCredentials ) : Org.BouncyCastle.Crypto.Tls.SignatureAndHashAlgorithm
HasExpectedEmptyExtensionData ( IDictionary extensions, int extensionType, byte alertDescription ) : bool
HasSigningCapability ( byte clientCertificateType ) : bool
ImportSession ( byte sessionID, Org.BouncyCastle.Crypto.Tls.SessionParameters sessionParameters ) : TlsSession
IsAeadCipherSuite ( int ciphersuite ) : bool
IsBlockCipherSuite ( int ciphersuite ) : bool
IsSignatureAlgorithmsExtensionAllowed ( Org.BouncyCastle.Crypto.Tls.ProtocolVersion clientVersion ) : bool
IsSsl ( TlsContext context ) : bool
IsStreamCipherSuite ( int ciphersuite ) : bool
IsTlsV11 ( Org.BouncyCastle.Crypto.Tls.ProtocolVersion version ) : bool
IsTlsV11 ( TlsContext context ) : bool
IsTlsV12 ( Org.BouncyCastle.Crypto.Tls.ProtocolVersion version ) : bool
IsTlsV12 ( TlsContext context ) : bool
IsValidCipherSuiteForVersion ( int cipherSuite, ProtocolVersion serverVersion ) : bool
IsValidUint16 ( int i ) : bool
IsValidUint16 ( long i ) : bool
IsValidUint24 ( int i ) : bool
IsValidUint24 ( long i ) : bool
IsValidUint32 ( long i ) : bool
IsValidUint48 ( long i ) : bool
IsValidUint64 ( long i ) : bool
IsValidUint8 ( int i ) : bool
IsValidUint8 ( long i ) : bool
PRF ( TlsContext context, byte secret, string asciiLabel, byte seed, int size ) : byte[]
PRF_legacy ( byte secret, string asciiLabel, byte seed, int size ) : byte[]
ParseSupportedSignatureAlgorithms ( bool allowAnonymous, Stream input ) : IList
ReadAllOrNothing ( int length, Stream input ) : byte[]
ReadAsn1Object ( byte encoding ) : Asn1Object
ReadDerObject ( byte encoding ) : Asn1Object
ReadFully ( int length, Stream input ) : byte[]
ReadFully ( byte buf, Stream input ) : void
ReadOpaque16 ( Stream input ) : byte[]
ReadOpaque24 ( Stream input ) : byte[]
ReadOpaque8 ( Stream input ) : byte[]
ReadSignatureAlgorithmsExtension ( byte extensionData ) : IList
ReadUint16 ( Stream input ) : int
ReadUint16 ( byte buf, int offset ) : int
ReadUint16Array ( int count, Stream input ) : int[]
ReadUint24 ( Stream input ) : int
ReadUint24 ( byte buf, int offset ) : int
ReadUint32 ( Stream input ) : long
ReadUint32 ( byte buf, int offset ) : long
ReadUint48 ( Stream input ) : long
ReadUint48 ( byte buf, int offset ) : long
ReadUint8 ( Stream input ) : byte
ReadUint8 ( byte buf, int offset ) : byte
ReadUint8Array ( int count, Stream input ) : byte[]
ReadVersion ( Stream input ) : ProtocolVersion
ReadVersion ( byte buf, int offset ) : ProtocolVersion
ReadVersionRaw ( Stream input ) : int
ReadVersionRaw ( byte buf, int offset ) : int
VerifySupportedSignatureAlgorithm ( IList supportedSignatureAlgorithms, SignatureAndHashAlgorithm signatureAlgorithm ) : void
WriteGmtUnixTime ( byte buf, int offset ) : void
WriteOpaque16 ( byte buf, Stream output ) : void
WriteOpaque24 ( byte buf, Stream output ) : void
WriteOpaque8 ( byte buf, Stream output ) : void
WriteUint16 ( int i, Stream output ) : void
WriteUint16 ( int i, byte buf, int offset ) : void
WriteUint16Array ( int uints, Stream output ) : void
WriteUint16Array ( int uints, byte buf, int offset ) : void
WriteUint16ArrayWithUint16Length ( int uints, Stream output ) : void
WriteUint16ArrayWithUint16Length ( int uints, byte buf, int offset ) : void
WriteUint24 ( int i, Stream output ) : void
WriteUint24 ( int i, byte buf, int offset ) : void
WriteUint32 ( long i, Stream output ) : void
WriteUint32 ( long i, byte buf, int offset ) : void
WriteUint48 ( long i, Stream output ) : void
WriteUint48 ( long i, byte buf, int offset ) : void
WriteUint64 ( long i, Stream output ) : void
WriteUint64 ( long i, byte buf, int offset ) : void
WriteUint8 ( byte i, Stream output ) : void
WriteUint8 ( byte i, byte buf, int offset ) : void
WriteUint8Array ( byte uints, Stream output ) : void
WriteUint8Array ( byte uints, byte buf, int offset ) : void
WriteUint8ArrayWithUint8Length ( byte uints, Stream output ) : void
WriteUint8ArrayWithUint8Length ( byte uints, byte buf, int offset ) : void
WriteVersion ( ProtocolVersion version, Stream output ) : void
WriteVersion ( ProtocolVersion version, byte buf, int offset ) : void

Private Methods

Method Description
CalculateKeyBlock ( TlsContext context, int size ) : byte[]
CalculateKeyBlock_Ssl ( byte master_secret, byte random, int size ) : byte[]
CalculateMasterSecret ( TlsContext context, byte pre_master_secret ) : byte[]
CalculateMasterSecret_Ssl ( byte pre_master_secret, byte random ) : byte[]
CalculateVerifyData ( TlsContext context, string asciiLabel, byte handshakeHash ) : byte[]
Concat ( byte a, byte b ) : byte[]
GenSsl3Const ( ) : byte[][]
GetClientCertificateType ( Certificate clientCertificate, Certificate serverCertificate ) : short
HMacHash ( IDigest digest, byte secret, byte seed, byte output ) : void
PRF_legacy ( byte secret, byte label, byte labelSeed, int size ) : byte[]
TrackHashAlgorithms ( TlsHandshakeHash handshakeHash, IList supportedSignatureAlgorithms ) : void
ValidateKeyUsage ( X509CertificateStructure c, int keyUsageBits ) : void
VectorOfOne ( object obj ) : IList

Method Details

AddSignatureAlgorithmsExtension() public static method

public static AddSignatureAlgorithmsExtension ( IDictionary extensions, IList supportedSignatureAlgorithms ) : void
extensions IDictionary
supportedSignatureAlgorithms IList
return void

CheckUint16() public static method

public static CheckUint16 ( int i ) : void
i int
return void

CheckUint16() public static method

public static CheckUint16 ( long i ) : void
i long
return void

CheckUint24() public static method

public static CheckUint24 ( int i ) : void
i int
return void

CheckUint24() public static method

public static CheckUint24 ( long i ) : void
i long
return void

CheckUint32() public static method

public static CheckUint32 ( long i ) : void
i long
return void

CheckUint48() public static method

public static CheckUint48 ( long i ) : void
i long
return void

CheckUint64() public static method

public static CheckUint64 ( long i ) : void
i long
return void

CheckUint8() public static method

public static CheckUint8 ( int i ) : void
i int
return void

CheckUint8() public static method

public static CheckUint8 ( long i ) : void
i long
return void

CloneHash() public static method

public static CloneHash ( byte hashAlgorithm, IDigest hash ) : IDigest
hashAlgorithm byte
hash IDigest
return IDigest

ClonePrfHash() public static method

public static ClonePrfHash ( int prfAlgorithm, IDigest hash ) : IDigest
prfAlgorithm int
hash IDigest
return IDigest

CreateHash() public static method

public static CreateHash ( Org.BouncyCastle.Crypto.Tls.SignatureAndHashAlgorithm signatureAndHashAlgorithm ) : IDigest
signatureAndHashAlgorithm Org.BouncyCastle.Crypto.Tls.SignatureAndHashAlgorithm
return IDigest

CreateHash() public static method

public static CreateHash ( byte hashAlgorithm ) : IDigest
hashAlgorithm byte
return IDigest

CreatePrfHash() public static method

public static CreatePrfHash ( int prfAlgorithm ) : IDigest
prfAlgorithm int
return IDigest

CreateSignatureAlgorithmsExtension() public static method

public static CreateSignatureAlgorithmsExtension ( IList supportedSignatureAlgorithms ) : byte[]
supportedSignatureAlgorithms IList
return byte[]

CreateTlsSigner() public static method

public static CreateTlsSigner ( byte clientCertificateType ) : TlsSigner
clientCertificateType byte
return TlsSigner

EncodeOpaque8() public static method

public static EncodeOpaque8 ( byte buf ) : byte[]
buf byte
return byte[]

EncodeSupportedSignatureAlgorithms() public static method

public static EncodeSupportedSignatureAlgorithms ( IList supportedSignatureAlgorithms, bool allowAnonymous, Stream output ) : void
supportedSignatureAlgorithms IList
allowAnonymous bool
output Stream
return void

EncodeUint16ArrayWithUint16Length() public static method

public static EncodeUint16ArrayWithUint16Length ( int uints ) : byte[]
uints int
return byte[]

EncodeUint8ArrayWithUint8Length() public static method

public static EncodeUint8ArrayWithUint8Length ( byte uints ) : byte[]
uints byte
return byte[]

GetCipherType() public static method

public static GetCipherType ( int ciphersuite ) : int
ciphersuite int
return int

GetDefaultDssSignatureAlgorithms() public static method

public static GetDefaultDssSignatureAlgorithms ( ) : IList
return IList

GetDefaultECDsaSignatureAlgorithms() public static method

public static GetDefaultECDsaSignatureAlgorithms ( ) : IList
return IList

GetDefaultRsaSignatureAlgorithms() public static method

public static GetDefaultRsaSignatureAlgorithms ( ) : IList
return IList

GetDefaultSupportedSignatureAlgorithms() public static method

public static GetDefaultSupportedSignatureAlgorithms ( ) : IList
return IList

GetEncryptionAlgorithm() public static method

public static GetEncryptionAlgorithm ( int ciphersuite ) : int
ciphersuite int
return int

GetExtensionData() public static method

public static GetExtensionData ( IDictionary extensions, int extensionType ) : byte[]
extensions IDictionary
extensionType int
return byte[]

GetHashAlgorithmForPrfAlgorithm() public static method

public static GetHashAlgorithmForPrfAlgorithm ( int prfAlgorithm ) : byte
prfAlgorithm int
return byte

GetKeyExchangeAlgorithm() public static method

public static GetKeyExchangeAlgorithm ( int ciphersuite ) : int
ciphersuite int
return int

GetMacAlgorithm() public static method

public static GetMacAlgorithm ( int ciphersuite ) : int
ciphersuite int
return int

GetMinimumVersion() public static method

public static GetMinimumVersion ( int ciphersuite ) : Org.BouncyCastle.Crypto.Tls.ProtocolVersion
ciphersuite int
return Org.BouncyCastle.Crypto.Tls.ProtocolVersion

GetOidForHashAlgorithm() public static method

public static GetOidForHashAlgorithm ( byte hashAlgorithm ) : DerObjectIdentifier
hashAlgorithm byte
return Org.BouncyCastle.Asn1.DerObjectIdentifier

GetSignatureAlgorithmsExtension() public static method

public static GetSignatureAlgorithmsExtension ( IDictionary extensions ) : IList
extensions IDictionary
return IList

GetSignatureAndHashAlgorithm() public static method

public static GetSignatureAndHashAlgorithm ( TlsContext context, TlsSignerCredentials signerCredentials ) : Org.BouncyCastle.Crypto.Tls.SignatureAndHashAlgorithm
context TlsContext
signerCredentials TlsSignerCredentials
return Org.BouncyCastle.Crypto.Tls.SignatureAndHashAlgorithm

HasExpectedEmptyExtensionData() public static method

public static HasExpectedEmptyExtensionData ( IDictionary extensions, int extensionType, byte alertDescription ) : bool
extensions IDictionary
extensionType int
alertDescription byte
return bool

HasSigningCapability() public static method

public static HasSigningCapability ( byte clientCertificateType ) : bool
clientCertificateType byte
return bool

ImportSession() public static method

public static ImportSession ( byte sessionID, Org.BouncyCastle.Crypto.Tls.SessionParameters sessionParameters ) : TlsSession
sessionID byte
sessionParameters Org.BouncyCastle.Crypto.Tls.SessionParameters
return TlsSession

IsAeadCipherSuite() public static method

public static IsAeadCipherSuite ( int ciphersuite ) : bool
ciphersuite int
return bool

IsBlockCipherSuite() public static method

public static IsBlockCipherSuite ( int ciphersuite ) : bool
ciphersuite int
return bool

IsSignatureAlgorithmsExtensionAllowed() public static method

public static IsSignatureAlgorithmsExtensionAllowed ( Org.BouncyCastle.Crypto.Tls.ProtocolVersion clientVersion ) : bool
clientVersion Org.BouncyCastle.Crypto.Tls.ProtocolVersion
return bool

IsSsl() public static method

public static IsSsl ( TlsContext context ) : bool
context TlsContext
return bool

IsStreamCipherSuite() public static method

public static IsStreamCipherSuite ( int ciphersuite ) : bool
ciphersuite int
return bool

IsTlsV11() public static method

public static IsTlsV11 ( Org.BouncyCastle.Crypto.Tls.ProtocolVersion version ) : bool
version Org.BouncyCastle.Crypto.Tls.ProtocolVersion
return bool

IsTlsV11() public static method

public static IsTlsV11 ( TlsContext context ) : bool
context TlsContext
return bool

IsTlsV12() public static method

public static IsTlsV12 ( Org.BouncyCastle.Crypto.Tls.ProtocolVersion version ) : bool
version Org.BouncyCastle.Crypto.Tls.ProtocolVersion
return bool

IsTlsV12() public static method

public static IsTlsV12 ( TlsContext context ) : bool
context TlsContext
return bool

IsValidCipherSuiteForVersion() public static method

public static IsValidCipherSuiteForVersion ( int cipherSuite, ProtocolVersion serverVersion ) : bool
cipherSuite int
serverVersion ProtocolVersion
return bool

IsValidUint16() public static method

public static IsValidUint16 ( int i ) : bool
i int
return bool

IsValidUint16() public static method

public static IsValidUint16 ( long i ) : bool
i long
return bool

IsValidUint24() public static method

public static IsValidUint24 ( int i ) : bool
i int
return bool

IsValidUint24() public static method

public static IsValidUint24 ( long i ) : bool
i long
return bool

IsValidUint32() public static method

public static IsValidUint32 ( long i ) : bool
i long
return bool

IsValidUint48() public static method

public static IsValidUint48 ( long i ) : bool
i long
return bool

IsValidUint64() public static method

public static IsValidUint64 ( long i ) : bool
i long
return bool

IsValidUint8() public static method

public static IsValidUint8 ( int i ) : bool
i int
return bool

IsValidUint8() public static method

public static IsValidUint8 ( long i ) : bool
i long
return bool

PRF() public static method

public static PRF ( TlsContext context, byte secret, string asciiLabel, byte seed, int size ) : byte[]
context TlsContext
secret byte
asciiLabel string
seed byte
size int
return byte[]

PRF_legacy() public static method

public static PRF_legacy ( byte secret, string asciiLabel, byte seed, int size ) : byte[]
secret byte
asciiLabel string
seed byte
size int
return byte[]

ParseSupportedSignatureAlgorithms() public static method

public static ParseSupportedSignatureAlgorithms ( bool allowAnonymous, Stream input ) : IList
allowAnonymous bool
input Stream
return IList

ReadAllOrNothing() public static method

public static ReadAllOrNothing ( int length, Stream input ) : byte[]
length int
input Stream
return byte[]

ReadAsn1Object() public static method

public static ReadAsn1Object ( byte encoding ) : Asn1Object
encoding byte
return Asn1Object

ReadDerObject() public static method

public static ReadDerObject ( byte encoding ) : Asn1Object
encoding byte
return Asn1Object

ReadFully() public static method

public static ReadFully ( int length, Stream input ) : byte[]
length int
input Stream
return byte[]

ReadFully() public static method

public static ReadFully ( byte buf, Stream input ) : void
buf byte
input Stream
return void

ReadOpaque16() public static method

public static ReadOpaque16 ( Stream input ) : byte[]
input Stream
return byte[]

ReadOpaque24() public static method

public static ReadOpaque24 ( Stream input ) : byte[]
input Stream
return byte[]

ReadOpaque8() public static method

public static ReadOpaque8 ( Stream input ) : byte[]
input Stream
return byte[]

ReadSignatureAlgorithmsExtension() public static method

public static ReadSignatureAlgorithmsExtension ( byte extensionData ) : IList
extensionData byte
return IList

ReadUint16() public static method

public static ReadUint16 ( Stream input ) : int
input Stream
return int

ReadUint16() public static method

public static ReadUint16 ( byte buf, int offset ) : int
buf byte
offset int
return int

ReadUint16Array() public static method

public static ReadUint16Array ( int count, Stream input ) : int[]
count int
input Stream
return int[]

ReadUint24() public static method

public static ReadUint24 ( Stream input ) : int
input Stream
return int

ReadUint24() public static method

public static ReadUint24 ( byte buf, int offset ) : int
buf byte
offset int
return int

ReadUint32() public static method

public static ReadUint32 ( Stream input ) : long
input Stream
return long

ReadUint32() public static method

public static ReadUint32 ( byte buf, int offset ) : long
buf byte
offset int
return long

ReadUint48() public static method

public static ReadUint48 ( Stream input ) : long
input Stream
return long

ReadUint48() public static method

public static ReadUint48 ( byte buf, int offset ) : long
buf byte
offset int
return long

ReadUint8() public static method

public static ReadUint8 ( Stream input ) : byte
input Stream
return byte

ReadUint8() public static method

public static ReadUint8 ( byte buf, int offset ) : byte
buf byte
offset int
return byte

ReadUint8Array() public static method

public static ReadUint8Array ( int count, Stream input ) : byte[]
count int
input Stream
return byte[]

ReadVersion() public static method

public static ReadVersion ( Stream input ) : ProtocolVersion
input Stream
return ProtocolVersion

ReadVersion() public static method

public static ReadVersion ( byte buf, int offset ) : ProtocolVersion
buf byte
offset int
return ProtocolVersion

ReadVersionRaw() public static method

public static ReadVersionRaw ( Stream input ) : int
input Stream
return int

ReadVersionRaw() public static method

public static ReadVersionRaw ( byte buf, int offset ) : int
buf byte
offset int
return int

VerifySupportedSignatureAlgorithm() public static method

public static VerifySupportedSignatureAlgorithm ( IList supportedSignatureAlgorithms, SignatureAndHashAlgorithm signatureAlgorithm ) : void
supportedSignatureAlgorithms IList
signatureAlgorithm SignatureAndHashAlgorithm
return void

WriteGmtUnixTime() public static method

public static WriteGmtUnixTime ( byte buf, int offset ) : void
buf byte
offset int
return void

WriteOpaque16() public static method

public static WriteOpaque16 ( byte buf, Stream output ) : void
buf byte
output Stream
return void

WriteOpaque24() public static method

public static WriteOpaque24 ( byte buf, Stream output ) : void
buf byte
output Stream
return void

WriteOpaque8() public static method

public static WriteOpaque8 ( byte buf, Stream output ) : void
buf byte
output Stream
return void

WriteUint16() public static method

public static WriteUint16 ( int i, Stream output ) : void
i int
output Stream
return void

WriteUint16() public static method

public static WriteUint16 ( int i, byte buf, int offset ) : void
i int
buf byte
offset int
return void

WriteUint16Array() public static method

public static WriteUint16Array ( int uints, Stream output ) : void
uints int
output Stream
return void

WriteUint16Array() public static method

public static WriteUint16Array ( int uints, byte buf, int offset ) : void
uints int
buf byte
offset int
return void

WriteUint16ArrayWithUint16Length() public static method

public static WriteUint16ArrayWithUint16Length ( int uints, Stream output ) : void
uints int
output Stream
return void

WriteUint16ArrayWithUint16Length() public static method

public static WriteUint16ArrayWithUint16Length ( int uints, byte buf, int offset ) : void
uints int
buf byte
offset int
return void

WriteUint24() public static method

public static WriteUint24 ( int i, Stream output ) : void
i int
output Stream
return void

WriteUint24() public static method

public static WriteUint24 ( int i, byte buf, int offset ) : void
i int
buf byte
offset int
return void

WriteUint32() public static method

public static WriteUint32 ( long i, Stream output ) : void
i long
output Stream
return void

WriteUint32() public static method

public static WriteUint32 ( long i, byte buf, int offset ) : void
i long
buf byte
offset int
return void

WriteUint48() public static method

public static WriteUint48 ( long i, Stream output ) : void
i long
output Stream
return void

WriteUint48() public static method

public static WriteUint48 ( long i, byte buf, int offset ) : void
i long
buf byte
offset int
return void

WriteUint64() public static method

public static WriteUint64 ( long i, Stream output ) : void
i long
output Stream
return void

WriteUint64() public static method

public static WriteUint64 ( long i, byte buf, int offset ) : void
i long
buf byte
offset int
return void

WriteUint8() public static method

public static WriteUint8 ( byte i, Stream output ) : void
i byte
output Stream
return void

WriteUint8() public static method

public static WriteUint8 ( byte i, byte buf, int offset ) : void
i byte
buf byte
offset int
return void

WriteUint8Array() public static method

public static WriteUint8Array ( byte uints, Stream output ) : void
uints byte
output Stream
return void

WriteUint8Array() public static method

public static WriteUint8Array ( byte uints, byte buf, int offset ) : void
uints byte
buf byte
offset int
return void

WriteUint8ArrayWithUint8Length() public static method

public static WriteUint8ArrayWithUint8Length ( byte uints, Stream output ) : void
uints byte
output Stream
return void

WriteUint8ArrayWithUint8Length() public static method

public static WriteUint8ArrayWithUint8Length ( byte uints, byte buf, int offset ) : void
uints byte
buf byte
offset int
return void

WriteVersion() public static method

public static WriteVersion ( ProtocolVersion version, Stream output ) : void
version ProtocolVersion
output Stream
return void

WriteVersion() public static method

public static WriteVersion ( ProtocolVersion version, byte buf, int offset ) : void
version ProtocolVersion
buf byte
offset int
return void

Property Details

EmptyBytes public_oe static_oe property

public static byte[] EmptyBytes
return byte[]

EmptyInts public_oe static_oe property

public static int[] EmptyInts
return int[]

EmptyLongs public_oe static_oe property

public static long[] EmptyLongs
return long[]

EmptyShorts public_oe static_oe property

public static short[] EmptyShorts
return short[]