예제 #1
0
 static int ToBytes(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         VisowFrameWork.ByteBuffer obj = (VisowFrameWork.ByteBuffer)ToLua.CheckObject <VisowFrameWork.ByteBuffer>(L, 1);
         byte[] o = obj.ToBytes();
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #2
0
 /// <summary>
 /// 发送消息
 /// </summary>
 public void SendMessage(ByteBuffer buffer)
 {
     SessionSend(buffer.ToBytes());
     buffer.Close();
 }
예제 #3
0
 public void Apped(ByteBuffer strBuffer)
 {
     writer.Write(strBuffer.ToBytes());
 }