Compare commits
2 Commits
344f58286d
...
192ddb67d9
Author | SHA1 | Date | |
---|---|---|---|
![]() |
192ddb67d9 | ||
![]() |
5e4cfcb945 |
Binary file not shown.
BIN
ArmaRAMDb_x64.so
BIN
ArmaRAMDb_x64.so
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -69,6 +69,10 @@ namespace ArmaRAMDb
|
|||||||
{
|
{
|
||||||
int start = int.Parse(startIndex);
|
int start = int.Parse(startIndex);
|
||||||
int end = int.Parse(endIndex);
|
int end = int.Parse(endIndex);
|
||||||
|
|
||||||
|
if (end == -1)
|
||||||
|
end = list.Count - 1;
|
||||||
|
|
||||||
start = Math.Max(0, start);
|
start = Math.Max(0, start);
|
||||||
end = Math.Min(list.Count - 1, end);
|
end = Math.Min(list.Count - 1, end);
|
||||||
|
|
||||||
@ -80,8 +84,18 @@ namespace ArmaRAMDb
|
|||||||
Main.Log($"ListRange: {listName} - StartIndex: {start} - EndIndex: {end} - Count: {count}", "debug");
|
Main.Log($"ListRange: {listName} - StartIndex: {start} - EndIndex: {end} - Count: {count}", "debug");
|
||||||
Utils.CheckByteCount(uniqueId, $"[{data}]", function, entity, Convert.ToBoolean(call), bufferSize);
|
Utils.CheckByteCount(uniqueId, $"[{data}]", function, entity, Convert.ToBoolean(call), bufferSize);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Main.Log($"ListRange: {listName} - Invalid range or empty result", "debug");
|
||||||
|
Utils.CheckByteCount(uniqueId, "[]", function, entity, Convert.ToBoolean(call), bufferSize);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Main.Log($"ListRange: {listName} - List not found", "debug");
|
||||||
|
Utils.CheckByteCount(uniqueId, "[]", function, entity, Convert.ToBoolean(call), bufferSize);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static async Task ListSetAsync(string listName, string index, string value)
|
public static async Task ListSetAsync(string listName, string index, string value)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user