Decode() public method

public Decode ( byte buffer, int bufferIndex, int len ) : int
buffer byte
bufferIndex int
len int
return int
コード例 #1
0
		internal override int ReadDataWireFormat(byte[] buffer, int bufferIndex, int len)
		{
			int start = bufferIndex;
			if (ErrorCode != 0)
			{
				return 4;
			}
			try
			{
				SecurityDescriptor = new SecurityDescriptor();
				bufferIndex += SecurityDescriptor.Decode(buffer, bufferIndex, len);
			}
			catch (IOException ioe)
			{
				throw new RuntimeException(ioe.Message);
			}
			return bufferIndex - start;
		}
コード例 #2
0
        internal override int ReadDataWireFormat(byte[] buffer, int bufferIndex, int len)
        {
            int start = bufferIndex;

            if (ErrorCode != 0)
            {
                return(4);
            }
            try
            {
                SecurityDescriptor = new SecurityDescriptor();
                bufferIndex       += SecurityDescriptor.Decode(buffer, bufferIndex, len);
            }
            catch (IOException ioe)
            {
                throw new RuntimeException(ioe.Message);
            }
            return(bufferIndex - start);
        }