diff options
| author | ruki <[email protected]> | 2022-04-07 23:05:34 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-04-07 23:05:34 +0800 |
| commit | 102b2c2b5d33b31ee7660e77fcbacac9bc5677a4 (patch) | |
| tree | 104c417bed8eeb9c2e058fb368a8e2f96c1084b2 /xmake/core/base/bytes.lua | |
| parent | e930a2db6840d9a6f501d4231889e045ba09d7d3 (diff) | |
fix stream recv
Diffstat (limited to 'xmake/core/base/bytes.lua')
| -rw-r--r-- | xmake/core/base/bytes.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/xmake/core/base/bytes.lua b/xmake/core/base/bytes.lua index 48a93cde8..daf51bc81 100644 --- a/xmake/core/base/bytes.lua +++ b/xmake/core/base/bytes.lua @@ -310,11 +310,13 @@ function _instance:clone() end -- dump whole bytes data -function _instance:dump() +function _instance:dump(start, last) + start = start or 1 + last = last or self:size() local i = 0 local n = 147 - local p = 0 - local e = self:size() + local p = start - 1 + local e = last local line = nil while p < e do line = "" |
