Package system.reflection.metadata
Class BlobBuilder
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.reflection.metadata.BlobBuilder
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class BlobBuilder extends NetObject
The base .NET class managing System.Reflection.Metadata.BlobBuilder, System.Reflection.Metadata, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.See: https://docs.microsoft.com/en-us/dotnet/api/System.Reflection.Metadata.BlobBuilder
-
-
Field Summary
Fields Modifier and Type Field Description static String
assemblyFullName
Fully assembly qualified name: System.Reflection.Metadata, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic String
assemblyShortName
Assembly name: System.Reflection.Metadatastatic String
className
Qualified class name: System.Reflection.Metadata.BlobBuilderstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description BlobBuilder()
BlobBuilder(int capacity)
BlobBuilder(Object instance)
Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
Align(int alignment)
static BlobBuilder
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoBlobBuilder
, a cast assert is made to check if types are compatible.void
Clear()
boolean
ContentEquals(BlobBuilder other)
int
getCount()
String
getJCOAssemblyName()
Returns the reflected Assembly nameString
getJCOClassName()
Returns the reflected Class nameObject
getJCOInstance()
Returns the instantiated classString
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typevoid
LinkPrefix(BlobBuilder prefix)
void
LinkSuffix(BlobBuilder suffix)
void
PadTo(int position)
Blob
ReserveBytes(int byteCount)
void
setJCOInstance(JCObject instance)
byte[]
ToArray()
byte[]
ToArray(int start, int byteCount)
int
TryWriteBytes(Stream source, int byteCount)
void
WriteBoolean(boolean value)
void
WriteByte(byte value)
void
WriteBytes(byte[] buffer)
void
WriteBytes(byte[] buffer, int start, int byteCount)
void
WriteBytes(byte value, int byteCount)
void
WriteBytes(JCORefOut dupParam0)
void
WriteBytes(JCORefOut dupParam0, int dupParam1, int dupParam2)
void
WriteCompressedInteger(int value)
void
WriteCompressedSignedInteger(int value)
void
WriteConstant(NetObject value)
void
WriteContentTo(JCORefOut<BlobWriter> destination)
void
WriteContentTo(Stream destination)
void
WriteContentTo(BlobBuilder destination)
void
WriteDateTime(DateTime value)
void
WriteDecimal(Decimal value)
void
WriteDouble(double value)
void
WriteGuid(Guid value)
void
WriteInt16(short value)
void
WriteInt16BE(short value)
void
WriteInt32(int value)
void
WriteInt32BE(int value)
void
WriteInt64(long value)
void
WriteReference(int reference, boolean isSmall)
void
WriteSByte(SByte value)
void
WriteSerializedString(String value)
void
WriteSingle(Single value)
void
WriteUInt16(UInt16 value)
void
WriteUInt16BE(UInt16 value)
void
WriteUInt32(UInt32 value)
void
WriteUInt32BE(UInt32 value)
void
WriteUInt64(UInt64 value)
void
WriteUserString(String value)
void
WriteUTF16(char[] value)
void
WriteUTF16(String value)
void
WriteUTF16(JCORefOut dupParam0)
void
WriteUTF8(String value, boolean allowUnpairedSurrogates)
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toObjectFromArray, toObjectFromArray, toString, ToString, translateException
-
-
-
-
Field Detail
-
assemblyFullName
public static final String assemblyFullName
Fully assembly qualified name: System.Reflection.Metadata, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final String assemblyShortName
Assembly name: System.Reflection.Metadata- See Also:
- Constant Field Values
-
className
public static final String className
Qualified class name: System.Reflection.Metadata.BlobBuilder- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BlobBuilder
public BlobBuilder(Object instance) throws Throwable
Internal constructor. Use with caution- Throws:
Throwable
-
BlobBuilder
public BlobBuilder(int capacity) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
-
Method Detail
-
getJCOAssemblyName
public String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classNetObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static BlobBuilder cast(IJCOBridgeReflected from) throws Throwable
Try to cast theIJCOBridgeReflected
instance intoBlobBuilder
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
BlobBuilder
instance- Throws:
Throwable
- in case of error during cast operation
-
ContentEquals
public boolean ContentEquals(BlobBuilder other) throws Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
-
ToArray
public byte[] ToArray() throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException
-
ToArray
public byte[] ToArray(int start, int byteCount) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
-
TryWriteBytes
public int TryWriteBytes(Stream source, int byteCount) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
ReserveBytes
public Blob ReserveBytes(int byteCount) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, FormatException
-
Align
public void Align(int alignment) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, FormatException
-
Clear
public void Clear() throws Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
-
LinkPrefix
public void LinkPrefix(BlobBuilder prefix) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
LinkSuffix
public void LinkSuffix(BlobBuilder suffix) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
PadTo
public void PadTo(int position) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, FormatException
-
WriteBoolean
public void WriteBoolean(boolean value) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, FormatException
-
WriteByte
public void WriteByte(byte value) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException
-
WriteBytes
public void WriteBytes(byte value, int byteCount) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, FormatException
-
WriteBytes
public void WriteBytes(byte[] buffer, int start, int byteCount) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, FormatException
-
WriteBytes
public void WriteBytes(JCORefOut dupParam0, int dupParam1, int dupParam2) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, FormatException
-
WriteBytes
public void WriteBytes(byte[] buffer) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, FormatException
-
WriteBytes
public void WriteBytes(JCORefOut dupParam0) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, FormatException
-
WriteCompressedInteger
public void WriteCompressedInteger(int value) throws Throwable, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, FormatException
-
WriteCompressedSignedInteger
public void WriteCompressedSignedInteger(int value) throws Throwable, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, FormatException
-
WriteConstant
public void WriteConstant(NetObject value) throws Throwable, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, FormatException, ArgumentException, PlatformNotSupportedException, NotSupportedException, RankException, ArrayTypeMismatchException
-
WriteContentTo
public void WriteContentTo(Stream destination) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
WriteContentTo
public void WriteContentTo(BlobBuilder destination) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, FormatException
-
WriteContentTo
public void WriteContentTo(JCORefOut<BlobWriter> destination) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, BadImageFormatException
-
WriteDateTime
public void WriteDateTime(DateTime value) throws Throwable, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, FormatException
-
WriteDecimal
public void WriteDecimal(Decimal value) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException
-
WriteDouble
public void WriteDouble(double value) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException
-
WriteGuid
public void WriteGuid(Guid value) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException
-
WriteInt16
public void WriteInt16(short value) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, FormatException
-
WriteInt16BE
public void WriteInt16BE(short value) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, FormatException
-
WriteInt32
public void WriteInt32(int value) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, FormatException
-
WriteInt32BE
public void WriteInt32BE(int value) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, FormatException
-
WriteInt64
public void WriteInt64(long value) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, FormatException
-
WriteReference
public void WriteReference(int reference, boolean isSmall) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, FormatException
-
WriteSByte
public void WriteSByte(SByte value) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, FormatException
-
WriteSerializedString
public void WriteSerializedString(String value) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, FormatException
-
WriteSingle
public void WriteSingle(Single value) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException
-
WriteUInt16
public void WriteUInt16(UInt16 value) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException
-
WriteUInt16BE
public void WriteUInt16BE(UInt16 value) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException
-
WriteUInt32
public void WriteUInt32(UInt32 value) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException
-
WriteUInt32BE
public void WriteUInt32BE(UInt32 value) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException
-
WriteUInt64
public void WriteUInt64(UInt64 value) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException
-
WriteUserString
public void WriteUserString(String value) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
WriteUTF16
public void WriteUTF16(char[] value) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, FormatException
-
WriteUTF16
public void WriteUTF16(JCORefOut dupParam0) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, FormatException
-
WriteUTF16
public void WriteUTF16(String value) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, FormatException
-
WriteUTF8
public void WriteUTF8(String value, boolean allowUnpairedSurrogates) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
-