Package system.reflection.metadata
Class BlobWriter
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.ValueType
-
- system.reflection.metadata.BlobWriter
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class BlobWriter extends ValueType
The base .NET class managing System.Reflection.Metadata.BlobWriter, System.Reflection.Metadata, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Reflection.Metadata.BlobWriter
Powered by JCOBridge: more info at https://www.jcobridge.com
- Version:
- 1.14.3.0
- Author:
- MASES s.r.l https://masesgroup.com
-
-
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.BlobWriterstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description BlobWriter()
BlobWriter(byte[] buffer)
BlobWriter(byte[] buffer, int start, int count)
BlobWriter(int size)
BlobWriter(Object instance)
Internal constructor.BlobWriter(Blob blob)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
Align(int alignment)
static BlobWriter
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoBlobWriter
, a cast assert is made to check if types are compatible.void
Clear()
boolean
ContentEquals(BlobWriter other)
Blob
getBlob()
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 Typeint
getLength()
int
getOffset()
int
getRemainingBytes()
void
PadTo(int offset)
void
setJCOInstance(JCObject instance)
void
setOffset(int Offset)
byte[]
ToArray()
byte[]
ToArray(int start, 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)
int
WriteBytes(Stream source, int byteCount)
void
WriteBytes(BlobBuilder source)
void
WriteCompressedInteger(int value)
void
WriteCompressedSignedInteger(int value)
void
WriteConstant(NetObject value)
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 str)
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.BlobWriter- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classValueType
- 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 classValueType
- 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 classValueType
- 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 classValueType
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classValueType
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classValueType
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static BlobWriter cast(IJCOBridgeReflected from) throws Throwable
Try to cast theIJCOBridgeReflected
instance intoBlobWriter
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
BlobWriter
instance- Throws:
Throwable
- in case of error during cast operation
-
ContentEquals
public boolean ContentEquals(BlobWriter other) throws Throwable
- Throws:
Throwable
-
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
-
WriteBytes
public int WriteBytes(Stream source, int byteCount) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, BadImageFormatException
-
Align
public void Align(int alignment) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, BadImageFormatException
-
PadTo
public void PadTo(int offset) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, BadImageFormatException
-
WriteBoolean
public void WriteBoolean(boolean value) throws Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, InvalidOperationException, BadImageFormatException
-
WriteByte
public void WriteByte(byte value) throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, BadImageFormatException
-
WriteBytes
public void WriteBytes(byte value, int byteCount) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, BadImageFormatException
-
WriteBytes
public void WriteBytes(byte[] buffer, int start, int byteCount) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, BadImageFormatException
-
WriteBytes
public void WriteBytes(JCORefOut dupParam0, int dupParam1, int dupParam2) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, BadImageFormatException
-
WriteBytes
public void WriteBytes(byte[] buffer) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, BadImageFormatException
-
WriteBytes
public void WriteBytes(JCORefOut dupParam0) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, BadImageFormatException
-
WriteBytes
public void WriteBytes(BlobBuilder source) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, BadImageFormatException
-
WriteCompressedInteger
public void WriteCompressedInteger(int value) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, BadImageFormatException, ArgumentOutOfRangeException
-
WriteCompressedSignedInteger
public void WriteCompressedSignedInteger(int value) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, BadImageFormatException, ArgumentOutOfRangeException
-
WriteConstant
public void WriteConstant(NetObject value) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, BadImageFormatException, ArgumentOutOfRangeException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException
-
WriteDateTime
public void WriteDateTime(DateTime value) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, BadImageFormatException
-
WriteDecimal
public void WriteDecimal(Decimal value) throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, BadImageFormatException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException
-
WriteDouble
public void WriteDouble(double value) throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, BadImageFormatException
-
WriteGuid
public void WriteGuid(Guid value) throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, BadImageFormatException
-
WriteInt16
public void WriteInt16(short value) throws Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, InvalidOperationException, BadImageFormatException
-
WriteInt16BE
public void WriteInt16BE(short value) throws Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, InvalidOperationException, BadImageFormatException
-
WriteInt32
public void WriteInt32(int value) throws Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, InvalidOperationException, BadImageFormatException
-
WriteInt32BE
public void WriteInt32BE(int value) throws Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, InvalidOperationException, BadImageFormatException
-
WriteInt64
public void WriteInt64(long value) throws Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, InvalidOperationException, BadImageFormatException
-
WriteReference
public void WriteReference(int reference, boolean isSmall) throws Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, InvalidOperationException, BadImageFormatException
-
WriteSByte
public void WriteSByte(SByte value) throws Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, InvalidOperationException, BadImageFormatException
-
WriteSerializedString
public void WriteSerializedString(String str) throws Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, InvalidOperationException, BadImageFormatException, ArgumentOutOfRangeException
-
WriteSingle
public void WriteSingle(Single value) throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, BadImageFormatException
-
WriteUInt16
public void WriteUInt16(UInt16 value) throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, BadImageFormatException
-
WriteUInt16BE
public void WriteUInt16BE(UInt16 value) throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, BadImageFormatException
-
WriteUInt32
public void WriteUInt32(UInt32 value) throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, BadImageFormatException
-
WriteUInt32BE
public void WriteUInt32BE(UInt32 value) throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, BadImageFormatException
-
WriteUInt64
public void WriteUInt64(UInt64 value) throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, BadImageFormatException
-
WriteUserString
public void WriteUserString(String value) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, BadImageFormatException
-
WriteUTF16
public void WriteUTF16(char[] value) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, BadImageFormatException
-
WriteUTF16
public void WriteUTF16(JCORefOut dupParam0) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, BadImageFormatException
-
WriteUTF16
public void WriteUTF16(String value) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, BadImageFormatException
-
WriteUTF8
public void WriteUTF8(String value, boolean allowUnpairedSurrogates) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, BadImageFormatException
-
setOffset
public void setOffset(int Offset) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
-