本文整理汇总了C#中SObject.isByteVector方法的典型用法代码示例。如果您正苦于以下问题:C# SObject.isByteVector方法的具体用法?C# SObject.isByteVector怎么用?C# SObject.isByteVector使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SObject
的用法示例。
在下文中一共展示了SObject.isByteVector方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: op2_bytevector_fill
public static SObject op2_bytevector_fill(SObject arg1, SObject arg2) {
expect2(arg1.isByteVector(), arg1, arg2.isFixnum(), arg2, Constants.EX_BVFILL);
((SByteVL)arg1).fill((byte)((SFixnum)arg2).value);
return Factory.Unspecified;
}
示例2: op2_bytevector_equal
public static SObject op2_bytevector_equal(SObject arg1, SObject arg2) {
expect2(arg1.isByteVector(), arg1, arg2.isByteVector(), arg2, -1);
byte[] bytes1 = ((SByteVL)arg1).elements;
byte[] bytes2 = ((SByteVL)arg2).elements;
if (bytes1.Length != bytes2.Length) return Factory.False;
for (int i = 0; i < bytes1.Length; ++i) {
if (bytes1[i] != bytes2[i]) return Factory.False;
}
return Factory.True;
}
示例3: op3_bytevector_set
public static SObject op3_bytevector_set(SObject arg1, SObject arg2,
SObject arg3) {
expect3(arg1.isByteVector(), arg1, arg2.isFixnum(), arg2, arg3.isFixnum(), arg3,
Constants.EX_BYTEVECTOR_SET);
rangeCheckBVL(arg1, arg2, arg3, Constants.EX_BYTEVECTOR_SET);
((SByteVL)arg1).elements[((SFixnum)arg2).value] = (byte)((SFixnum)arg3).value;
return Factory.Unspecified;
}
示例4: op2_bytevector_ref
public static SObject op2_bytevector_ref(SObject arg1, SObject arg2) {
expect2(arg1.isByteVector(), arg1, arg2.isFixnum(), arg2, Constants.EX_BYTEVECTOR_REF);
rangeCheckBVL(arg1, arg2, Constants.EX_BYTEVECTOR_REF);
return Factory.wrap(((SByteVL)arg1).elements[((SFixnum)arg2).value]);
}
示例5: op1_bytevector_length
public static SObject op1_bytevector_length(SObject arg) {
expect1(arg.isByteVector(), arg, Constants.EX_BYTEVECTOR_LENGTH);
return Factory.makeFixnum(((SByteVL)arg).length());
}
示例6: op1_bytevectorp
public static SObject op1_bytevectorp(SObject arg) {
return Factory.makeBoolean(arg.isByteVector());
}