Example #1
0
 /// <summary>
 /// Decode specified buffer from specified index, with specified count
 /// of bytes, into the instance of current class.
 /// </summary>
 /// <param name="buffer">The specified buffer.</param>
 /// <param name="index">The specified index from beginning of buffer.</param>
 /// <param name="count">The specified count of bytes to be decoded.</param>
 internal override void DecodeBuffer(byte[] buffer, int index, int count)
 {
     NativeKerbValidationInfo = PacUtility.NdrUnmarshal <KERB_VALIDATION_INFO>(
         buffer,
         index,
         count,
         FormatString.OffsetKerb);
 }
        /// <summary>
        /// Creates an empty KerbValidationInfo instance.
        /// </summary>
        /// <param name="native">native structure contains kerb validation information.</param>
        /// <returns>The created KerbValidationInfo instance.</returns>
        public static KerbValidationInfo CreateKerbValidationInfoBuffer(KERB_VALIDATION_INFO native)
        {
            KerbValidationInfo kerbInfo = new KerbValidationInfo();

            kerbInfo.NativeKerbValidationInfo = native;

            return(kerbInfo);
        }
 /// <summary>
 /// Decode specified buffer from specified index, with specified count
 /// of bytes, into the instance of current class.
 /// </summary>
 /// <param name="buffer">The specified buffer.</param>
 /// <param name="index">The specified index from beginning of buffer.</param>
 /// <param name="count">The specified count of bytes to be decoded.</param>
 internal override void DecodeBuffer(byte[] buffer, int index, int count)
 {
     NativeKerbValidationInfo = PacUtility.NdrUnmarshal<KERB_VALIDATION_INFO>(
         buffer,
         index,
         count,
         FormatString.OffsetKerb);
 }