internal static uint SNIWritePacket(SNIHandle pConn, SNIPacket packet, bool sync) { if (sync) { return SNIWriteSyncOverAsync(pConn, packet); } else { return SNIWriteAsyncWrapper(pConn, packet); } }
internal override uint WritePacket(object packet, bool sync) => SNINativeMethodWrapper.SNIWritePacket(Handle, (SNIPacket)packet, sync);