Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why ToLua.Push LuaByteBuffer use bb.buffer.Length ? #240

Open
zmeteor11 opened this issue Oct 25, 2021 · 0 comments
Open

why ToLua.Push LuaByteBuffer use bb.buffer.Length ? #240

zmeteor11 opened this issue Oct 25, 2021 · 0 comments

Comments

@zmeteor11
Copy link


public class LuaState
{
public void Push(LuaByteBuffer bb)
{
LuaDLL.lua_pushlstring(L, bb.buffer, bb.Length);
}
}


public static class ToLua
{
public static void Push(IntPtr L, LuaByteBuffer bb)
{
LuaDLL.lua_pushlstring(L, bb.buffer, bb.buffer.Length);
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant