yyl
2025-12-03 bf9d063af5655f93db17578cfe52d8abbb60c596
Main/Core/NetworkPackage/GameNetPackBasic.cs
@@ -962,6 +962,10 @@
    {
        try
        {
            if (vInts.IsNullOrEmpty())
            {
                return;
            }
            if (vInts.Length != vLockLeng)
                Array.Resize(ref vInts, vLockLeng);
            this.WriteBytes(vInts, vType);
@@ -978,6 +982,10 @@
    {
        try
        {
            if (vInts.IsNullOrEmpty())
            {
                return;
            }
            if (vInts.Length != vLockLeng)
                Array.Resize(ref vInts, vLockLeng);
            this.WriteBytes(vInts, vType);
@@ -993,6 +1001,10 @@
    {
        try
        {
            if (vInts.IsNullOrEmpty())
            {
                return;
            }
            if (vWriteLen == StrWriteLen.BYTE)
                this.WriteBytes(new Byte[] { (byte)vInts.Length });
            else if (vWriteLen == StrWriteLen.WORD)
@@ -1012,6 +1024,10 @@
    {
        try
        {
            if (vInts.IsNullOrEmpty())
            {
                return;
            }
            int l = vInts.Length;
            byte[] vRst;
            int i;
@@ -1051,6 +1067,10 @@
    {
        try
        {
            if (vInts.IsNullOrEmpty())
            {
                return;
            }
            int l = vInts.Length;
            byte[] vRst;
            int i;
@@ -1147,6 +1167,11 @@
    {
        try
        {
            if (vBytes.IsNullOrEmpty())
            {
                return;
            }
            Array.Resize(ref _writedBytes, _writeIndex + vBytes.Length);
            vBytes.CopyTo(_writedBytes, _writeIndex);
            _writeIndex = _writedBytes.Length;