Table of Contents

Class ByteUtils

Namespace
Org.Apache.Kafka.Common.Utils
Assembly
MASES.KNet.dll
public class ByteUtils : JVMBridgeBase<ByteUtils>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<ByteUtils>
ByteUtils
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<ByteUtils>.IsAssignableFrom(IJavaType)
JVMBridgeBase<ByteUtils>.IsAssignableFrom<T>()
JVMBridgeBase<ByteUtils>.Execute<T>(params T[])
JVMBridgeBase<ByteUtils>.DynBridgeClazz
JVMBridgeBase<ByteUtils>.BridgeClazz
JVMBridgeBase.RuntimeClassNameOf<T>()
JVMBridgeBase.ClassNameOf<T>()
JVMBridgeBase.ClassOf<T>()
JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)
JVMBridgeBase.MonitorEnter()
JVMBridgeBase.MonitorExit()
JVMBridgeBase.IsInstanceOf(IJavaType)
JVMBridgeBase.IsInstanceOf<T>()
JVMBridgeBase.RuntimeIsInstanceOf<T>()
JVMBridgeBase.CastTo<TNewClass>()
JVMBridgeBase.CastDirect<TNewClass>()
JVMBridgeBase.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener

Constructors

ByteUtils()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

public ByteUtils()

ByteUtils(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

public ByteUtils(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

EMPTY_BUF

public static ByteBuffer EMPTY_BUF { get; }

Property Value

ByteBuffer

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

Methods

ReadDouble(DataInput)

public static double ReadDouble(DataInput arg0)

Parameters

arg0 DataInput

DataInput

Returns

double

double

Exceptions

IOException

ReadDouble(ByteBuffer)

public static double ReadDouble(ByteBuffer arg0)

Parameters

arg0 ByteBuffer

ByteBuffer

Returns

double

double

ReadIntBE(byte[], int)

public static int ReadIntBE(byte[] arg0, int arg1)

Parameters

arg0 byte[]

byte

arg1 int

int

Returns

int

int

ReadUnsignedInt(ByteBuffer)

public static long ReadUnsignedInt(ByteBuffer arg0)

Parameters

arg0 ByteBuffer

ByteBuffer

Returns

long

long

ReadUnsignedInt(ByteBuffer, int)

public static long ReadUnsignedInt(ByteBuffer arg0, int arg1)

Parameters

arg0 ByteBuffer

ByteBuffer

arg1 int

int

Returns

long

long

ReadUnsignedIntLE(InputStream)

public static int ReadUnsignedIntLE(InputStream arg0)

Parameters

arg0 InputStream

InputStream

Returns

int

int

Exceptions

IOException

ReadUnsignedIntLE(byte[], int)

public static int ReadUnsignedIntLE(byte[] arg0, int arg1)

Parameters

arg0 byte[]

byte

arg1 int

int

Returns

int

int

ReadUnsignedVarint(ByteBuffer)

public static int ReadUnsignedVarint(ByteBuffer arg0)

Parameters

arg0 ByteBuffer

ByteBuffer

Returns

int

int

ReadVarint(InputStream)

public static int ReadVarint(InputStream arg0)

Parameters

arg0 InputStream

InputStream

Returns

int

int

Exceptions

IOException

ReadVarint(ByteBuffer)

public static int ReadVarint(ByteBuffer arg0)

Parameters

arg0 ByteBuffer

ByteBuffer

Returns

int

int

ReadVarlong(InputStream)

public static long ReadVarlong(InputStream arg0)

Parameters

arg0 InputStream

InputStream

Returns

long

long

Exceptions

IOException

ReadVarlong(ByteBuffer)

public static long ReadVarlong(ByteBuffer arg0)

Parameters

arg0 ByteBuffer

ByteBuffer

Returns

long

long

SizeOfUnsignedVarint(int)

public static int SizeOfUnsignedVarint(int arg0)

Parameters

arg0 int

int

Returns

int

int

SizeOfUnsignedVarlong(long)

public static int SizeOfUnsignedVarlong(long arg0)

Parameters

arg0 long

long

Returns

int

int

SizeOfVarint(int)

public static int SizeOfVarint(int arg0)

Parameters

arg0 int

int

Returns

int

int

SizeOfVarlong(long)

public static int SizeOfVarlong(long arg0)

Parameters

arg0 long

long

Returns

int

int

WriteDouble(double, DataOutput)

public static void WriteDouble(double arg0, DataOutput arg1)

Parameters

arg0 double

double

arg1 DataOutput

DataOutput

Exceptions

IOException

WriteDouble(double, ByteBuffer)

public static void WriteDouble(double arg0, ByteBuffer arg1)

Parameters

arg0 double

double

arg1 ByteBuffer

ByteBuffer

WriteUnsignedInt(ByteBuffer, int, long)

public static void WriteUnsignedInt(ByteBuffer arg0, int arg1, long arg2)

Parameters

arg0 ByteBuffer

ByteBuffer

arg1 int

int

arg2 long

long

WriteUnsignedInt(ByteBuffer, long)

public static void WriteUnsignedInt(ByteBuffer arg0, long arg1)

Parameters

arg0 ByteBuffer

ByteBuffer

arg1 long

long

WriteUnsignedIntLE(OutputStream, int)

public static void WriteUnsignedIntLE(OutputStream arg0, int arg1)

Parameters

arg0 OutputStream

OutputStream

arg1 int

int

Exceptions

IOException

WriteUnsignedIntLE(byte[], int, int)

public static void WriteUnsignedIntLE(byte[] arg0, int arg1, int arg2)

Parameters

arg0 byte[]

byte

arg1 int

int

arg2 int

int

WriteUnsignedVarint(int, DataOutput)

public static void WriteUnsignedVarint(int arg0, DataOutput arg1)

Parameters

arg0 int

int

arg1 DataOutput

DataOutput

Exceptions

IOException

WriteUnsignedVarint(int, ByteBuffer)

public static void WriteUnsignedVarint(int arg0, ByteBuffer arg1)

Parameters

arg0 int

int

arg1 ByteBuffer

ByteBuffer

WriteUnsignedVarlong(long, ByteBuffer)

public static void WriteUnsignedVarlong(long arg0, ByteBuffer arg1)

Parameters

arg0 long

long

arg1 ByteBuffer

ByteBuffer

WriteVarint(int, DataOutput)

public static void WriteVarint(int arg0, DataOutput arg1)

Parameters

arg0 int

int

arg1 DataOutput

DataOutput

Exceptions

IOException

WriteVarint(int, ByteBuffer)

public static void WriteVarint(int arg0, ByteBuffer arg1)

Parameters

arg0 int

int

arg1 ByteBuffer

ByteBuffer

WriteVarlong(long, DataOutput)

public static void WriteVarlong(long arg0, DataOutput arg1)

Parameters

arg0 long

long

arg1 DataOutput

DataOutput

Exceptions

IOException

WriteVarlong(long, ByteBuffer)

public static void WriteVarlong(long arg0, ByteBuffer arg1)

Parameters

arg0 long

long

arg1 ByteBuffer

ByteBuffer