BonCodeAJP13Namespace.BonCodeAJP13Packet.GetByteArray C# (CSharp) Метод

GetByteArray() защищенный статический Метод

Get the byte array value from the Data array starting from the position Pos
protected static GetByteArray ( byte Data, byte &Value, int Pos, int ArrayLength ) : int
Data byte
Value byte
Pos int
ArrayLength int
Результат int
        protected static int GetByteArray(byte[] Data, ref byte[] Value, int Pos, int ArrayLength)
        {
            UInt16 RealLenght = 0;
            GetUInt16(Data, ref RealLenght, Pos);

            Value = new byte[RealLenght];
            Array.Copy(Data, Pos + 2, Value, 0, RealLenght);
            return Pos + RealLenght + 2;
        }