| | |
| | | { |
| | | try |
| | | { |
| | | if (vInts.IsNullOrEmpty()) |
| | | { |
| | | return; |
| | | } |
| | | if (vInts.Length != vLockLeng) |
| | | Array.Resize(ref vInts, vLockLeng); |
| | | this.WriteBytes(vInts, vType); |
| | |
| | | { |
| | | try |
| | | { |
| | | if (vInts.IsNullOrEmpty()) |
| | | { |
| | | return; |
| | | } |
| | | if (vInts.Length != vLockLeng) |
| | | Array.Resize(ref vInts, vLockLeng); |
| | | this.WriteBytes(vInts, vType); |
| | |
| | | { |
| | | try |
| | | { |
| | | if (vInts.IsNullOrEmpty()) |
| | | { |
| | | return; |
| | | } |
| | | if (vWriteLen == StrWriteLen.BYTE) |
| | | this.WriteBytes(new Byte[] { (byte)vInts.Length }); |
| | | else if (vWriteLen == StrWriteLen.WORD) |
| | |
| | | { |
| | | try |
| | | { |
| | | if (vInts.IsNullOrEmpty()) |
| | | { |
| | | return; |
| | | } |
| | | int l = vInts.Length; |
| | | byte[] vRst; |
| | | int i; |
| | |
| | | { |
| | | try |
| | | { |
| | | if (vInts.IsNullOrEmpty()) |
| | | { |
| | | return; |
| | | } |
| | | int l = vInts.Length; |
| | | byte[] vRst; |
| | | int i; |
| | |
| | | { |
| | | try |
| | | { |
| | | if (vBytes.IsNullOrEmpty()) |
| | | { |
| | | return; |
| | | } |
| | | |
| | | Array.Resize(ref _writedBytes, _writeIndex + vBytes.Length); |
| | | vBytes.CopyTo(_writedBytes, _writeIndex); |
| | | _writeIndex = _writedBytes.Length; |