Beispiel #1
0
    public static Packet Build(long header, byte[] bytes, bool bytesHasHeader = true)
    {
        var p = m_pool.Pop();

        p.Set(header, bytes, bytesHasHeader);
        return(p);
    }
        public static ProtocolEntry Create(PacketObject rPacket, int rFrame)
        {
            var entry = m_pool.Pop();

            entry.packet = rPacket;
            entry.frame  = rFrame;
            return(entry);
        }
        public static LogEntry Create(PacketObject rPacket, int rFrame, StackTrace rStackTrace)
        {
            var entry = m_pool.Pop();

            entry.packet     = rPacket;
            entry.frame      = rFrame;
            entry.stackTrace = rStackTrace;
            return(entry);
        }
Beispiel #4
0
 public static Command Create()
 {
     return(m_pool.Pop());
 }