本文整理汇总了C#中ITypedGettersV3.GetBytesLength方法的典型用法代码示例。如果您正苦于以下问题:C# ITypedGettersV3.GetBytesLength方法的具体用法?C# ITypedGettersV3.GetBytesLength怎么用?C# ITypedGettersV3.GetBytesLength使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ITypedGettersV3
的用法示例。
在下文中一共展示了ITypedGettersV3.GetBytesLength方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetBytesLength_Unchecked
private static long GetBytesLength_Unchecked( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal ) {
Debug.Assert( !IsDBNull_Unchecked( sink, getters, ordinal ) );
long result = getters.GetBytesLength( sink, ordinal );
sink.ProcessMessagesAndThrow();
return result;
}
示例2: GetBytesLength_Unchecked
private static long GetBytesLength_Unchecked(SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal)
{
long bytesLength = getters.GetBytesLength(sink, ordinal);
sink.ProcessMessagesAndThrow();
return bytesLength;
}
示例3: GetByteArray_Unchecked
private static byte[] GetByteArray_Unchecked( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal ) {
Debug.Assert( !IsDBNull_Unchecked( sink, getters, ordinal ) );
long length = getters.GetBytesLength( sink, ordinal );
sink.ProcessMessagesAndThrow();
int len = checked( (int)length );
byte[] buffer = new byte[len];
getters.GetBytes( sink, ordinal, 0, buffer, 0, len );
sink.ProcessMessagesAndThrow();
return buffer;
}
示例4: GetByteArray_Unchecked
private static byte[] GetByteArray_Unchecked(SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal)
{
long bytesLength = getters.GetBytesLength(sink, ordinal);
sink.ProcessMessagesAndThrow();
int length = (int) bytesLength;
byte[] buffer = new byte[length];
getters.GetBytes(sink, ordinal, 0L, buffer, 0, length);
sink.ProcessMessagesAndThrow();
return buffer;
}