mirror of
https://github.com/KeymonSoft/Medicomed_Preventa.git
synced 2026-04-21 06:49:14 +00:00
v: 5.10.24
Se hicieron invisibles normales de la venta, se agregaron 2 botones mas, uno indica que tieene venta y el otro que no tiene, tambien al boton que indica que tiene venta se le agrega una pequeña ventana para agregar la venta que se le indique.
This commit is contained in:
420
B4A/Objects/src/keymon/lat/medicomed/b4xbytesbuilder.java
Normal file
420
B4A/Objects/src/keymon/lat/medicomed/b4xbytesbuilder.java
Normal file
@@ -0,0 +1,420 @@
|
||||
package keymon.lat.medicomed;
|
||||
|
||||
|
||||
import anywheresoftware.b4a.BA;
|
||||
import anywheresoftware.b4a.B4AClass;
|
||||
import anywheresoftware.b4a.BALayout;
|
||||
import anywheresoftware.b4a.debug.*;
|
||||
|
||||
public class b4xbytesbuilder extends B4AClass.ImplB4AClass implements BA.SubDelegator{
|
||||
private static java.util.HashMap<String, java.lang.reflect.Method> htSubs;
|
||||
private void innerInitialize(BA _ba) throws Exception {
|
||||
if (ba == null) {
|
||||
ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "keymon.lat.medicomed.b4xbytesbuilder");
|
||||
if (htSubs == null) {
|
||||
ba.loadHtSubs(this.getClass());
|
||||
htSubs = ba.htSubs;
|
||||
}
|
||||
|
||||
}
|
||||
if (BA.isShellModeRuntimeCheck(ba))
|
||||
this.getClass().getMethod("_class_globals", keymon.lat.medicomed.b4xbytesbuilder.class).invoke(this, new Object[] {null});
|
||||
else
|
||||
ba.raiseEvent2(null, true, "class_globals", false);
|
||||
}
|
||||
|
||||
|
||||
public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{
|
||||
innerInitialize(_ba);
|
||||
}
|
||||
public Object callSub(String sub, Object sender, Object[] args) throws Exception {
|
||||
return BA.SubDelegator.SubNotFound;
|
||||
}
|
||||
public anywheresoftware.b4a.keywords.Common __c = null;
|
||||
public byte[] _mbuffer = null;
|
||||
public int _mlength = 0;
|
||||
public b4a.example.dateutils _dateutils = null;
|
||||
public keymon.lat.medicomed.main _main = null;
|
||||
public keymon.lat.medicomed.starter _starter = null;
|
||||
public keymon.lat.medicomed.subs _subs = null;
|
||||
public keymon.lat.medicomed.appupdater _appupdater = null;
|
||||
public keymon.lat.medicomed.mapa_rutas _mapa_rutas = null;
|
||||
public keymon.lat.medicomed.tracker _tracker = null;
|
||||
public keymon.lat.medicomed.newinst2 _newinst2 = null;
|
||||
public keymon.lat.medicomed.b4xpages _b4xpages = null;
|
||||
public keymon.lat.medicomed.b4xcollections _b4xcollections = null;
|
||||
public keymon.lat.medicomed.httputils2service _httputils2service = null;
|
||||
public keymon.lat.medicomed.xuiviewsutils _xuiviewsutils = null;
|
||||
public keymon.lat.medicomed.b4xbytesbuilder _append(keymon.lat.medicomed.b4xbytesbuilder __ref,byte[] _data) throws Exception{
|
||||
__ref = this;
|
||||
RDebugUtils.currentModule="b4xbytesbuilder";
|
||||
if (Debug.shouldDelegate(ba, "append", true))
|
||||
{return ((keymon.lat.medicomed.b4xbytesbuilder) Debug.delegate(ba, "append", new Object[] {_data}));}
|
||||
RDebugUtils.currentLine=34537472;
|
||||
//BA.debugLineNum = 34537472;BA.debugLine="Public Sub Append(Data() As Byte) As B4XBytesBuild";
|
||||
RDebugUtils.currentLine=34537473;
|
||||
//BA.debugLineNum = 34537473;BA.debugLine="Return Append2(Data, 0, Data.Length)";
|
||||
if (true) return __ref._append2 /*keymon.lat.medicomed.b4xbytesbuilder*/ (null,_data,(int) (0),_data.length);
|
||||
RDebugUtils.currentLine=34537474;
|
||||
//BA.debugLineNum = 34537474;BA.debugLine="End Sub";
|
||||
return null;
|
||||
}
|
||||
public keymon.lat.medicomed.b4xbytesbuilder _append2(keymon.lat.medicomed.b4xbytesbuilder __ref,byte[] _data,int _startindex,int _length) throws Exception{
|
||||
__ref = this;
|
||||
RDebugUtils.currentModule="b4xbytesbuilder";
|
||||
if (Debug.shouldDelegate(ba, "append2", true))
|
||||
{return ((keymon.lat.medicomed.b4xbytesbuilder) Debug.delegate(ba, "append2", new Object[] {_data,_startindex,_length}));}
|
||||
int _oldlength = 0;
|
||||
RDebugUtils.currentLine=34603008;
|
||||
//BA.debugLineNum = 34603008;BA.debugLine="Public Sub Append2(Data() As Byte, StartIndex As I";
|
||||
RDebugUtils.currentLine=34603009;
|
||||
//BA.debugLineNum = 34603009;BA.debugLine="Dim OldLength As Int = ChangeLength(mLength + Len";
|
||||
_oldlength = __ref._changelength /*int*/ (null,(int) (__ref._mlength /*int*/ +_length));
|
||||
RDebugUtils.currentLine=34603010;
|
||||
//BA.debugLineNum = 34603010;BA.debugLine="Bit.ArrayCopy(Data, StartIndex, mBuffer, OldLengt";
|
||||
__c.Bit.ArrayCopy((Object)(_data),_startindex,(Object)(__ref._mbuffer /*byte[]*/ ),_oldlength,_length);
|
||||
RDebugUtils.currentLine=34603011;
|
||||
//BA.debugLineNum = 34603011;BA.debugLine="Return Me";
|
||||
if (true) return (keymon.lat.medicomed.b4xbytesbuilder)(this);
|
||||
RDebugUtils.currentLine=34603012;
|
||||
//BA.debugLineNum = 34603012;BA.debugLine="End Sub";
|
||||
return null;
|
||||
}
|
||||
public int _changelength(keymon.lat.medicomed.b4xbytesbuilder __ref,int _newlength) throws Exception{
|
||||
__ref = this;
|
||||
RDebugUtils.currentModule="b4xbytesbuilder";
|
||||
if (Debug.shouldDelegate(ba, "changelength", true))
|
||||
{return ((Integer) Debug.delegate(ba, "changelength", new Object[] {_newlength}));}
|
||||
int _oldlength = 0;
|
||||
byte[] _b = null;
|
||||
RDebugUtils.currentLine=34471936;
|
||||
//BA.debugLineNum = 34471936;BA.debugLine="Private Sub ChangeLength (NewLength As Int) As Int";
|
||||
RDebugUtils.currentLine=34471937;
|
||||
//BA.debugLineNum = 34471937;BA.debugLine="Dim OldLength As Int = mLength";
|
||||
_oldlength = __ref._mlength /*int*/ ;
|
||||
RDebugUtils.currentLine=34471938;
|
||||
//BA.debugLineNum = 34471938;BA.debugLine="mLength = NewLength";
|
||||
__ref._mlength /*int*/ = _newlength;
|
||||
RDebugUtils.currentLine=34471939;
|
||||
//BA.debugLineNum = 34471939;BA.debugLine="If mBuffer.Length < mLength Then";
|
||||
if (__ref._mbuffer /*byte[]*/ .length<__ref._mlength /*int*/ ) {
|
||||
RDebugUtils.currentLine=34471940;
|
||||
//BA.debugLineNum = 34471940;BA.debugLine="Dim b(Max(mBuffer.Length * 2, NewLength)) As Byt";
|
||||
_b = new byte[(int) (__c.Max(__ref._mbuffer /*byte[]*/ .length*2,_newlength))];
|
||||
;
|
||||
RDebugUtils.currentLine=34471941;
|
||||
//BA.debugLineNum = 34471941;BA.debugLine="Bit.ArrayCopy(mBuffer, 0, b, 0, mBuffer.Length)";
|
||||
__c.Bit.ArrayCopy((Object)(__ref._mbuffer /*byte[]*/ ),(int) (0),(Object)(_b),(int) (0),__ref._mbuffer /*byte[]*/ .length);
|
||||
RDebugUtils.currentLine=34471942;
|
||||
//BA.debugLineNum = 34471942;BA.debugLine="mBuffer = b";
|
||||
__ref._mbuffer /*byte[]*/ = _b;
|
||||
};
|
||||
RDebugUtils.currentLine=34471944;
|
||||
//BA.debugLineNum = 34471944;BA.debugLine="Return OldLength";
|
||||
if (true) return _oldlength;
|
||||
RDebugUtils.currentLine=34471945;
|
||||
//BA.debugLineNum = 34471945;BA.debugLine="End Sub";
|
||||
return 0;
|
||||
}
|
||||
public String _class_globals(keymon.lat.medicomed.b4xbytesbuilder __ref) throws Exception{
|
||||
__ref = this;
|
||||
RDebugUtils.currentModule="b4xbytesbuilder";
|
||||
RDebugUtils.currentLine=34340864;
|
||||
//BA.debugLineNum = 34340864;BA.debugLine="Sub Class_Globals";
|
||||
RDebugUtils.currentLine=34340865;
|
||||
//BA.debugLineNum = 34340865;BA.debugLine="Private mBuffer() As Byte";
|
||||
_mbuffer = new byte[(int) (0)];
|
||||
;
|
||||
RDebugUtils.currentLine=34340866;
|
||||
//BA.debugLineNum = 34340866;BA.debugLine="Private mLength As Int";
|
||||
_mlength = 0;
|
||||
RDebugUtils.currentLine=34340867;
|
||||
//BA.debugLineNum = 34340867;BA.debugLine="End Sub";
|
||||
return "";
|
||||
}
|
||||
public String _clear(keymon.lat.medicomed.b4xbytesbuilder __ref) throws Exception{
|
||||
__ref = this;
|
||||
RDebugUtils.currentModule="b4xbytesbuilder";
|
||||
if (Debug.shouldDelegate(ba, "clear", true))
|
||||
{return ((String) Debug.delegate(ba, "clear", null));}
|
||||
RDebugUtils.currentLine=34668544;
|
||||
//BA.debugLineNum = 34668544;BA.debugLine="Public Sub Clear";
|
||||
RDebugUtils.currentLine=34668545;
|
||||
//BA.debugLineNum = 34668545;BA.debugLine="ChangeLength(0)";
|
||||
__ref._changelength /*int*/ (null,(int) (0));
|
||||
RDebugUtils.currentLine=34668546;
|
||||
//BA.debugLineNum = 34668546;BA.debugLine="End Sub";
|
||||
return "";
|
||||
}
|
||||
public byte[] _getbuffer(keymon.lat.medicomed.b4xbytesbuilder __ref) throws Exception{
|
||||
__ref = this;
|
||||
RDebugUtils.currentModule="b4xbytesbuilder";
|
||||
if (Debug.shouldDelegate(ba, "getbuffer", true))
|
||||
{return ((byte[]) Debug.delegate(ba, "getbuffer", null));}
|
||||
RDebugUtils.currentLine=35192832;
|
||||
//BA.debugLineNum = 35192832;BA.debugLine="Private Sub getBuffer As Byte() 'ignore";
|
||||
RDebugUtils.currentLine=35192833;
|
||||
//BA.debugLineNum = 35192833;BA.debugLine="End Sub";
|
||||
return null;
|
||||
}
|
||||
public byte[] _getinternalbuffer(keymon.lat.medicomed.b4xbytesbuilder __ref) throws Exception{
|
||||
__ref = this;
|
||||
RDebugUtils.currentModule="b4xbytesbuilder";
|
||||
if (Debug.shouldDelegate(ba, "getinternalbuffer", true))
|
||||
{return ((byte[]) Debug.delegate(ba, "getinternalbuffer", null));}
|
||||
RDebugUtils.currentLine=35389440;
|
||||
//BA.debugLineNum = 35389440;BA.debugLine="Public Sub getInternalBuffer As Byte()";
|
||||
RDebugUtils.currentLine=35389441;
|
||||
//BA.debugLineNum = 35389441;BA.debugLine="Return mBuffer";
|
||||
if (true) return __ref._mbuffer /*byte[]*/ ;
|
||||
RDebugUtils.currentLine=35389442;
|
||||
//BA.debugLineNum = 35389442;BA.debugLine="End Sub";
|
||||
return null;
|
||||
}
|
||||
public int _getlength(keymon.lat.medicomed.b4xbytesbuilder __ref) throws Exception{
|
||||
__ref = this;
|
||||
RDebugUtils.currentModule="b4xbytesbuilder";
|
||||
if (Debug.shouldDelegate(ba, "getlength", true))
|
||||
{return ((Integer) Debug.delegate(ba, "getlength", null));}
|
||||
RDebugUtils.currentLine=35061760;
|
||||
//BA.debugLineNum = 35061760;BA.debugLine="Public Sub getLength As Int";
|
||||
RDebugUtils.currentLine=35061761;
|
||||
//BA.debugLineNum = 35061761;BA.debugLine="Return mLength";
|
||||
if (true) return __ref._mlength /*int*/ ;
|
||||
RDebugUtils.currentLine=35061762;
|
||||
//BA.debugLineNum = 35061762;BA.debugLine="End Sub";
|
||||
return 0;
|
||||
}
|
||||
public int _indexof(keymon.lat.medicomed.b4xbytesbuilder __ref,byte[] _searchfor) throws Exception{
|
||||
__ref = this;
|
||||
RDebugUtils.currentModule="b4xbytesbuilder";
|
||||
if (Debug.shouldDelegate(ba, "indexof", true))
|
||||
{return ((Integer) Debug.delegate(ba, "indexof", new Object[] {_searchfor}));}
|
||||
RDebugUtils.currentLine=35258368;
|
||||
//BA.debugLineNum = 35258368;BA.debugLine="Public Sub IndexOf(SearchFor() As Byte) As Int";
|
||||
RDebugUtils.currentLine=35258369;
|
||||
//BA.debugLineNum = 35258369;BA.debugLine="Return IndexOf2(SearchFor, 0)";
|
||||
if (true) return __ref._indexof2 /*int*/ (null,_searchfor,(int) (0));
|
||||
RDebugUtils.currentLine=35258370;
|
||||
//BA.debugLineNum = 35258370;BA.debugLine="End Sub";
|
||||
return 0;
|
||||
}
|
||||
public int _indexof2(keymon.lat.medicomed.b4xbytesbuilder __ref,byte[] _searchfor,int _index) throws Exception{
|
||||
__ref = this;
|
||||
RDebugUtils.currentModule="b4xbytesbuilder";
|
||||
if (Debug.shouldDelegate(ba, "indexof2", true))
|
||||
{return ((Integer) Debug.delegate(ba, "indexof2", new Object[] {_searchfor,_index}));}
|
||||
int _i1 = 0;
|
||||
int _i2 = 0;
|
||||
RDebugUtils.currentLine=35323904;
|
||||
//BA.debugLineNum = 35323904;BA.debugLine="Public Sub IndexOf2(SearchFor() As Byte, Index As";
|
||||
RDebugUtils.currentLine=35323905;
|
||||
//BA.debugLineNum = 35323905;BA.debugLine="For i1 = Index To mLength - SearchFor.Length";
|
||||
{
|
||||
final int step1 = 1;
|
||||
final int limit1 = (int) (__ref._mlength /*int*/ -_searchfor.length);
|
||||
_i1 = _index ;
|
||||
for (;_i1 <= limit1 ;_i1 = _i1 + step1 ) {
|
||||
RDebugUtils.currentLine=35323906;
|
||||
//BA.debugLineNum = 35323906;BA.debugLine="For i2 = 0 To SearchFor.Length - 1";
|
||||
{
|
||||
final int step2 = 1;
|
||||
final int limit2 = (int) (_searchfor.length-1);
|
||||
_i2 = (int) (0) ;
|
||||
for (;_i2 <= limit2 ;_i2 = _i2 + step2 ) {
|
||||
RDebugUtils.currentLine=35323907;
|
||||
//BA.debugLineNum = 35323907;BA.debugLine="If SearchFor(i2) <> mBuffer(i1 + i2) Then";
|
||||
if (_searchfor[_i2]!=__ref._mbuffer /*byte[]*/ [(int) (_i1+_i2)]) {
|
||||
RDebugUtils.currentLine=35323908;
|
||||
//BA.debugLineNum = 35323908;BA.debugLine="Exit";
|
||||
if (true) break;
|
||||
};
|
||||
}
|
||||
};
|
||||
RDebugUtils.currentLine=35323911;
|
||||
//BA.debugLineNum = 35323911;BA.debugLine="If i2 = SearchFor.Length Then";
|
||||
if (_i2==_searchfor.length) {
|
||||
RDebugUtils.currentLine=35323912;
|
||||
//BA.debugLineNum = 35323912;BA.debugLine="Return i1";
|
||||
if (true) return _i1;
|
||||
};
|
||||
}
|
||||
};
|
||||
RDebugUtils.currentLine=35323915;
|
||||
//BA.debugLineNum = 35323915;BA.debugLine="Return -1";
|
||||
if (true) return (int) (-1);
|
||||
RDebugUtils.currentLine=35323916;
|
||||
//BA.debugLineNum = 35323916;BA.debugLine="End Sub";
|
||||
return 0;
|
||||
}
|
||||
public String _initialize(keymon.lat.medicomed.b4xbytesbuilder __ref,anywheresoftware.b4a.BA _ba) throws Exception{
|
||||
__ref = this;
|
||||
innerInitialize(_ba);
|
||||
RDebugUtils.currentModule="b4xbytesbuilder";
|
||||
if (Debug.shouldDelegate(ba, "initialize", true))
|
||||
{return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba}));}
|
||||
RDebugUtils.currentLine=34406400;
|
||||
//BA.debugLineNum = 34406400;BA.debugLine="Public Sub Initialize";
|
||||
RDebugUtils.currentLine=34406401;
|
||||
//BA.debugLineNum = 34406401;BA.debugLine="Dim mBuffer(100) As Byte";
|
||||
_mbuffer = new byte[(int) (100)];
|
||||
;
|
||||
RDebugUtils.currentLine=34406402;
|
||||
//BA.debugLineNum = 34406402;BA.debugLine="mLength = 0";
|
||||
__ref._mlength /*int*/ = (int) (0);
|
||||
RDebugUtils.currentLine=34406403;
|
||||
//BA.debugLineNum = 34406403;BA.debugLine="End Sub";
|
||||
return "";
|
||||
}
|
||||
public String _insert(keymon.lat.medicomed.b4xbytesbuilder __ref,int _index,byte[] _data) throws Exception{
|
||||
__ref = this;
|
||||
RDebugUtils.currentModule="b4xbytesbuilder";
|
||||
if (Debug.shouldDelegate(ba, "insert", true))
|
||||
{return ((String) Debug.delegate(ba, "insert", new Object[] {_index,_data}));}
|
||||
byte[] _afterindex = null;
|
||||
RDebugUtils.currentLine=34734080;
|
||||
//BA.debugLineNum = 34734080;BA.debugLine="Public Sub Insert(Index As Int, Data() As Byte)";
|
||||
RDebugUtils.currentLine=34734081;
|
||||
//BA.debugLineNum = 34734081;BA.debugLine="If Index >= mLength Then";
|
||||
if (_index>=__ref._mlength /*int*/ ) {
|
||||
RDebugUtils.currentLine=34734082;
|
||||
//BA.debugLineNum = 34734082;BA.debugLine="If Index > mLength Then Log(\"Index too large\")";
|
||||
if (_index>__ref._mlength /*int*/ ) {
|
||||
__c.LogImpl("934734082","Index too large",0);};
|
||||
RDebugUtils.currentLine=34734083;
|
||||
//BA.debugLineNum = 34734083;BA.debugLine="Append(Data)";
|
||||
__ref._append /*keymon.lat.medicomed.b4xbytesbuilder*/ (null,_data);
|
||||
}else {
|
||||
RDebugUtils.currentLine=34734085;
|
||||
//BA.debugLineNum = 34734085;BA.debugLine="Dim AfterIndex() As Byte = SubArray(Index)";
|
||||
_afterindex = __ref._subarray /*byte[]*/ (null,_index);
|
||||
RDebugUtils.currentLine=34734086;
|
||||
//BA.debugLineNum = 34734086;BA.debugLine="ChangeLength(mLength + Data.Length)";
|
||||
__ref._changelength /*int*/ (null,(int) (__ref._mlength /*int*/ +_data.length));
|
||||
RDebugUtils.currentLine=34734087;
|
||||
//BA.debugLineNum = 34734087;BA.debugLine="Bit.ArrayCopy(Data, 0, mBuffer, Index, Data.Leng";
|
||||
__c.Bit.ArrayCopy((Object)(_data),(int) (0),(Object)(__ref._mbuffer /*byte[]*/ ),_index,_data.length);
|
||||
RDebugUtils.currentLine=34734088;
|
||||
//BA.debugLineNum = 34734088;BA.debugLine="Bit.ArrayCopy(AfterIndex, 0, mBuffer, Index + Da";
|
||||
__c.Bit.ArrayCopy((Object)(_afterindex),(int) (0),(Object)(__ref._mbuffer /*byte[]*/ ),(int) (_index+_data.length),_afterindex.length);
|
||||
};
|
||||
RDebugUtils.currentLine=34734090;
|
||||
//BA.debugLineNum = 34734090;BA.debugLine="End Sub";
|
||||
return "";
|
||||
}
|
||||
public byte[] _subarray(keymon.lat.medicomed.b4xbytesbuilder __ref,int _beginindex) throws Exception{
|
||||
__ref = this;
|
||||
RDebugUtils.currentModule="b4xbytesbuilder";
|
||||
if (Debug.shouldDelegate(ba, "subarray", true))
|
||||
{return ((byte[]) Debug.delegate(ba, "subarray", new Object[] {_beginindex}));}
|
||||
RDebugUtils.currentLine=34930688;
|
||||
//BA.debugLineNum = 34930688;BA.debugLine="Public Sub SubArray(BeginIndex As Int) As Byte()";
|
||||
RDebugUtils.currentLine=34930689;
|
||||
//BA.debugLineNum = 34930689;BA.debugLine="Return SubArray2(BeginIndex, mLength)";
|
||||
if (true) return __ref._subarray2 /*byte[]*/ (null,_beginindex,__ref._mlength /*int*/ );
|
||||
RDebugUtils.currentLine=34930690;
|
||||
//BA.debugLineNum = 34930690;BA.debugLine="End Sub";
|
||||
return null;
|
||||
}
|
||||
public byte[] _remove(keymon.lat.medicomed.b4xbytesbuilder __ref,int _beginindex,int _endindex) throws Exception{
|
||||
__ref = this;
|
||||
RDebugUtils.currentModule="b4xbytesbuilder";
|
||||
if (Debug.shouldDelegate(ba, "remove", true))
|
||||
{return ((byte[]) Debug.delegate(ba, "remove", new Object[] {_beginindex,_endindex}));}
|
||||
byte[] _res = null;
|
||||
byte[] _afterendindex = null;
|
||||
RDebugUtils.currentLine=34865152;
|
||||
//BA.debugLineNum = 34865152;BA.debugLine="Public Sub Remove(BeginIndex As Int, EndIndex As I";
|
||||
RDebugUtils.currentLine=34865153;
|
||||
//BA.debugLineNum = 34865153;BA.debugLine="Dim res() As Byte = SubArray2(BeginIndex, EndInde";
|
||||
_res = __ref._subarray2 /*byte[]*/ (null,_beginindex,_endindex);
|
||||
RDebugUtils.currentLine=34865154;
|
||||
//BA.debugLineNum = 34865154;BA.debugLine="If EndIndex <= mLength Then";
|
||||
if (_endindex<=__ref._mlength /*int*/ ) {
|
||||
RDebugUtils.currentLine=34865155;
|
||||
//BA.debugLineNum = 34865155;BA.debugLine="Dim AfterEndIndex() As Byte = SubArray(EndIndex)";
|
||||
_afterendindex = __ref._subarray /*byte[]*/ (null,_endindex);
|
||||
RDebugUtils.currentLine=34865156;
|
||||
//BA.debugLineNum = 34865156;BA.debugLine="Bit.ArrayCopy(AfterEndIndex, 0, mBuffer, BeginIn";
|
||||
__c.Bit.ArrayCopy((Object)(_afterendindex),(int) (0),(Object)(__ref._mbuffer /*byte[]*/ ),_beginindex,_afterendindex.length);
|
||||
};
|
||||
RDebugUtils.currentLine=34865158;
|
||||
//BA.debugLineNum = 34865158;BA.debugLine="ChangeLength(mLength - (EndIndex - BeginIndex))";
|
||||
__ref._changelength /*int*/ (null,(int) (__ref._mlength /*int*/ -(_endindex-_beginindex)));
|
||||
RDebugUtils.currentLine=34865159;
|
||||
//BA.debugLineNum = 34865159;BA.debugLine="Return res";
|
||||
if (true) return _res;
|
||||
RDebugUtils.currentLine=34865160;
|
||||
//BA.debugLineNum = 34865160;BA.debugLine="End Sub";
|
||||
return null;
|
||||
}
|
||||
public byte[] _subarray2(keymon.lat.medicomed.b4xbytesbuilder __ref,int _beginindex,int _endindex) throws Exception{
|
||||
__ref = this;
|
||||
RDebugUtils.currentModule="b4xbytesbuilder";
|
||||
if (Debug.shouldDelegate(ba, "subarray2", true))
|
||||
{return ((byte[]) Debug.delegate(ba, "subarray2", new Object[] {_beginindex,_endindex}));}
|
||||
byte[] _b = null;
|
||||
RDebugUtils.currentLine=34996224;
|
||||
//BA.debugLineNum = 34996224;BA.debugLine="Public Sub SubArray2(BeginIndex As Int, EndIndex A";
|
||||
RDebugUtils.currentLine=34996225;
|
||||
//BA.debugLineNum = 34996225;BA.debugLine="Dim b(EndIndex - BeginIndex) As Byte";
|
||||
_b = new byte[(int) (_endindex-_beginindex)];
|
||||
;
|
||||
RDebugUtils.currentLine=34996226;
|
||||
//BA.debugLineNum = 34996226;BA.debugLine="Bit.ArrayCopy(mBuffer, BeginIndex, b, 0, b.Length";
|
||||
__c.Bit.ArrayCopy((Object)(__ref._mbuffer /*byte[]*/ ),_beginindex,(Object)(_b),(int) (0),_b.length);
|
||||
RDebugUtils.currentLine=34996227;
|
||||
//BA.debugLineNum = 34996227;BA.debugLine="Return b";
|
||||
if (true) return _b;
|
||||
RDebugUtils.currentLine=34996228;
|
||||
//BA.debugLineNum = 34996228;BA.debugLine="End Sub";
|
||||
return null;
|
||||
}
|
||||
public String _set(keymon.lat.medicomed.b4xbytesbuilder __ref,int _index,byte[] _data) throws Exception{
|
||||
__ref = this;
|
||||
RDebugUtils.currentModule="b4xbytesbuilder";
|
||||
if (Debug.shouldDelegate(ba, "set", true))
|
||||
{return ((String) Debug.delegate(ba, "set", new Object[] {_index,_data}));}
|
||||
RDebugUtils.currentLine=34799616;
|
||||
//BA.debugLineNum = 34799616;BA.debugLine="Public Sub Set(Index As Int, Data() As Byte)";
|
||||
RDebugUtils.currentLine=34799617;
|
||||
//BA.debugLineNum = 34799617;BA.debugLine="If Index >= mLength Then";
|
||||
if (_index>=__ref._mlength /*int*/ ) {
|
||||
RDebugUtils.currentLine=34799618;
|
||||
//BA.debugLineNum = 34799618;BA.debugLine="If Index > mLength Then Log(\"Index too large\")";
|
||||
if (_index>__ref._mlength /*int*/ ) {
|
||||
__c.LogImpl("934799618","Index too large",0);};
|
||||
RDebugUtils.currentLine=34799619;
|
||||
//BA.debugLineNum = 34799619;BA.debugLine="Append(Data)";
|
||||
__ref._append /*keymon.lat.medicomed.b4xbytesbuilder*/ (null,_data);
|
||||
}else {
|
||||
RDebugUtils.currentLine=34799621;
|
||||
//BA.debugLineNum = 34799621;BA.debugLine="If Data.Length + Index > mLength Then";
|
||||
if (_data.length+_index>__ref._mlength /*int*/ ) {
|
||||
RDebugUtils.currentLine=34799622;
|
||||
//BA.debugLineNum = 34799622;BA.debugLine="ChangeLength(Data.Length + Index)";
|
||||
__ref._changelength /*int*/ (null,(int) (_data.length+_index));
|
||||
};
|
||||
RDebugUtils.currentLine=34799624;
|
||||
//BA.debugLineNum = 34799624;BA.debugLine="Bit.ArrayCopy(Data, 0, mBuffer, Index, Data.Leng";
|
||||
__c.Bit.ArrayCopy((Object)(_data),(int) (0),(Object)(__ref._mbuffer /*byte[]*/ ),_index,_data.length);
|
||||
};
|
||||
RDebugUtils.currentLine=34799626;
|
||||
//BA.debugLineNum = 34799626;BA.debugLine="End Sub";
|
||||
return "";
|
||||
}
|
||||
public byte[] _toarray(keymon.lat.medicomed.b4xbytesbuilder __ref) throws Exception{
|
||||
__ref = this;
|
||||
RDebugUtils.currentModule="b4xbytesbuilder";
|
||||
if (Debug.shouldDelegate(ba, "toarray", true))
|
||||
{return ((byte[]) Debug.delegate(ba, "toarray", null));}
|
||||
RDebugUtils.currentLine=35127296;
|
||||
//BA.debugLineNum = 35127296;BA.debugLine="Public Sub ToArray() As Byte()";
|
||||
RDebugUtils.currentLine=35127297;
|
||||
//BA.debugLineNum = 35127297;BA.debugLine="Return SubArray(0)";
|
||||
if (true) return __ref._subarray /*byte[]*/ (null,(int) (0));
|
||||
RDebugUtils.currentLine=35127298;
|
||||
//BA.debugLineNum = 35127298;BA.debugLine="End Sub";
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user