summaryrefslogtreecommitdiff
path: root/xmake/core/base/bytes.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-01-31 23:51:38 +0800
committerruki <[email protected]>2020-01-31 17:09:53 +0800
commitc36bc1c2eb92bfd9090ad3e6ed382aa40f34e8c9 (patch)
tree97928b8505980d3e46d7a11fe00f4c12e1b6afe5 /xmake/core/base/bytes.lua
parent01af47d386620ef4f4401505d85a3f36fe8243c6 (diff)
add sched_pipe_pair test
Diffstat (limited to 'xmake/core/base/bytes.lua')
-rw-r--r--xmake/core/base/bytes.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/core/base/bytes.lua b/xmake/core/base/bytes.lua
index 76579ab0f..d1d6d8e36 100644
--- a/xmake/core/base/bytes.lua
+++ b/xmake/core/base/bytes.lua
@@ -422,6 +422,11 @@ function _instance:__concat(other)
return new
end
+-- tostring(bytes)
+function _instance:__tostring()
+ return "<bytes: " .. self:size() .. ">"
+end
+
-- todisplay(bytes)
function _instance:__todisplay()
local parts = {}