1234567891011121314151617181920212223242526272829303132333435363738 |
- using System;
- namespace XGame.Framework.Network
- {
- internal class FrameDataBytes : IFrameData
- {
- public byte[] bytes;
- public int offset;
- public int length;
- public void Clear()
- {
- SessionBufferPool.Recycle(bytes);
- bytes = null;
- offset = 0;
- length = 0;
- }
- }
- internal class FrameDataEvent : IFrameData
- {
- public ESessionCode code;
- public Exception exception;
- public void Clear()
- {
- code = ESessionCode.None;
- exception = null;
- }
- }
- internal class FrameDataMessage : IFrameData
- {
- public IMessage message;
- public void Clear()
- {
- message = null;
- }
- }
- }
|