You've already forked linux-packaging-mono
Imported Upstream version 5.14.0.172
Former-commit-id: 3f247eb53cff41b923e80f93ed660709d182aa8b
This commit is contained in:
parent
b0beda071a
commit
0c2a85078e
@ -173,7 +173,7 @@ namespace System {
|
||||
offset++;
|
||||
|
||||
offset += ((int) number) * intOffset;
|
||||
return GetInteger (buffer, offset);
|
||||
return GetInt16 (buffer, offset);
|
||||
}
|
||||
|
||||
public string Get (TermInfoStrings tstr)
|
||||
@ -222,27 +222,6 @@ namespace System {
|
||||
return (short) (uno + dos * 256);
|
||||
}
|
||||
|
||||
int GetInt32 (byte [] buffer, int offset)
|
||||
{
|
||||
int b1 = (int) buffer [offset];
|
||||
int b2 = (int) buffer [offset + 1];
|
||||
int b3 = (int) buffer [offset + 2];
|
||||
int b4 = (int) buffer [offset + 3];
|
||||
if (b1 == 255 && b2 == 255 && b3 == 255 && b4 == 255)
|
||||
return -1;
|
||||
|
||||
return b1 + b2 << 8 + b3 << 16 + b4 << 24;
|
||||
}
|
||||
|
||||
int GetInteger (byte [] buffer, int offset)
|
||||
{
|
||||
if (intOffset == 2)
|
||||
return GetInt16 (buffer, offset);
|
||||
else
|
||||
// intOffset == 4
|
||||
return GetInt32 (buffer, offset);
|
||||
}
|
||||
|
||||
string GetString (byte [] buffer, int offset)
|
||||
{
|
||||
int length = 0;
|
||||
|
Reference in New Issue
Block a user