@Override public int getLengthInBytes ( final Object value, final int FLAG ) { return ( (JIInterfacePointer)value ).getLength (); } }
public int getLengthInBytes(Object value,int FLAG) { return ((JIInterfacePointer)value).getLength(); } }
public int getLengthInBytes(Object value,int FLAG) { return ((JIInterfacePointer)value).getLength(); } }
public int getLengthInBytes(Object value,int FLAG) { JIInterfacePointer interfacePointer = ((IJIComObject)value).internal_getInterfacePointer(); return ((JIInterfacePointer)interfacePointer).getLength(); }
@Override public int getLengthInBytes ( final Object value, final int FLAG ) { final JIInterfacePointer interfacePointer = ( (IJIComObject)value ).internal_getInterfacePointer (); return interfacePointer.getLength (); }
public int getLengthInBytes(Object value,int FLAG) { JIInterfacePointer interfacePointer = ((IJIComObject)value).internal_getInterfacePointer(); return ((JIInterfacePointer)interfacePointer).getLength(); }
private int getMaxLength2 ( final Class c, final Object obj ) { int length = 0; //since this is getMaxLength2 and hence will either contain //proper type 3 elements and not EMPTY,NULL,SCODE since these are parts of Variant. //and not simple types like Integer, JIUnsignedXXX or Float etc. if ( type3.contains ( c ) ) { length = JIMarshalUnMarshalHelper.getLengthInBytes ( c, obj, this.FLAG ); } else if ( c.equals ( Long.class ) || c.equals ( Double.class ) || c.equals ( Date.class ) || c.equals ( JICurrency.class ) ) { length = 8; } else if ( c.equals ( JIString.class ) ) { length = JIMarshalUnMarshalHelper.getLengthInBytes ( c, obj, this.FLAG ); } else // for Interface pointers without if ( obj instanceof IJIComObject ) { double value = ( (IJIComObject)obj ).internal_getInterfacePointer ().getLength (); value = value + 4 + 4 + 4; //20 of variant , 4 of the ptr, 4 of max count, 4 of actual count } return length; }
private int getMaxLength2(Class c, Object obj) { int length = 0; //since this is getMaxLength2 and hence will either contain //proper type 3 elements and not EMPTY,NULL,SCODE since these are parts of Variant. //and not simple types like Integer, JIUnsignedXXX or Float etc. if (type3.contains(c)) { length = JIMarshalUnMarshalHelper.getLengthInBytes(c, obj, FLAG); } else if(c.equals(Long.class) || c.equals(Double.class) || c.equals(Date.class) || c.equals(JICurrency.class)) { length = 8; } else if(c.equals(JIString.class)) { length = JIMarshalUnMarshalHelper.getLengthInBytes(c, obj, FLAG); }else // for Interface pointers without if(obj instanceof IJIComObject) { double value = ((IJIComObject)obj).internal_getInterfacePointer().getLength(); value = value + 4 + 4 + 4; //20 of variant , 4 of the ptr, 4 of max count, 4 of actual count } return length; }
if(obj instanceof IJIComObject) double value = ((IJIComObject)obj).internal_getInterfacePointer().getLength(); value = value + 4 + 4 + 4; //20 of variant , 4 of the ptr, 4 of max count, 4 of actual count