From 102b2c2b5d33b31ee7660e77fcbacac9bc5677a4 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 7 Apr 2022 23:05:34 +0800 Subject: fix stream recv --- xmake/core/base/bytes.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'xmake/core/base/bytes.lua') 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 = "" -- cgit v1.3.1