首次提交

This commit is contained in:
a158
2026-03-31 16:00:38 +08:00
parent b61b466f82
commit bcc8ee91cd
14 changed files with 889 additions and 0 deletions

32
target/fastweb/queue.lua Normal file
View File

@@ -0,0 +1,32 @@
-- queue.lua
local queue = {}
queue.__index = queue
function queue.new()
local instance = setmetatable({}, queue)
instance.module = fw_queue.new()
return instance
end
function queue:push(value)
self.module:push(value)
end
function queue:pop()
return self.module:pop()
end
function queue:size()
return self.module:pop()
end
function queue:clear()
self.module:clear()
end
function queue:self()
return self.module:self()
end
return queue