/// <summary> /// Copies data in SNIPacket to given byte array parameter /// </summary> /// <param name="packet">SNIPacket object containing data packets</param> /// <param name="inBuff">Destination byte array where data packets are copied to</param> /// <param name="dataSize">Length of data packets</param> /// <returns>SNI error status</returns> public uint PacketGetData(SNIPacket packet, byte[] inBuff, ref uint dataSize) { int dataSizeInt = 0; packet.GetData(inBuff, ref dataSizeInt); dataSize = (uint)dataSizeInt; return(TdsEnums.SNI_SUCCESS); }