GetBytes() public method

Gets the raw bytes of the section.
public GetBytes ( ) : byte[]
return byte[]
Exemplo n.º 1
0
        /// <summary>
        /// Gets the contents of the data directory.
        /// </summary>
        /// <returns></returns>
        public byte[] GetBytes()
        {
            if (Section == null)
            {
                return(null);
            }

            return(Section.GetBytes(TargetOffset.FileOffset, (int)Size));
        }