3 writes to _header
System.Speech (3)
Result\RecognitionResult.cs (3)
35_header = null!; 306_header = new SPRESULTHEADER(legacyHeader); 311_header = Marshal.PtrToStructure<SPRESULTHEADER>(buffer)!;
22 references to _header
System.Speech (22)
Result\RecognitionResult.cs (22)
151if (_audio == null && _header.ulRetainedOffset > 0) 178if (_header.times.dwTickCount == 0) 184startTime = DateTime.FromFileTime((long)((ulong)_header.times.ftStreamTime.dwHighDateTime << 32) + _header.times.ftStreamTime.dwLowDateTime); 261_audioPosition ??= new TimeSpan((long)_header.times.ullStart); 270_audioDuration ??= new TimeSpan((long)_header.times.ullLength); 279[MemberNotNull(nameof(_header))] 316_header.Validate(); 319IntPtr phraseBuffer = new((long)buffer + (int)_header.ulPhraseOffset); 321SPSERIALIZEDPHRASE serializedPhrase = RecognizedPhrase.GetPhraseHeader(phraseBuffer, _header.ulPhraseDataSize, _isSapi53Header); 324bool hasIPAPronunciation = (_header.fAlphabet & (uint)SPRESULTALPHABET.SPRA_APP_UPS) != 0; 326InitializeFromSerializedBuffer(this, serializedPhrase, phraseBuffer, (int)_header.ulPhraseDataSize, _isSapi53Header, hasIPAPronunciation); 343_sapiAudioBlob = new byte[(int)_header.ulRetainedDataSize]; 344Array.Copy(sapiResultBlob, (int)_header.ulRetainedOffset, _sapiAudioBlob, 0, (int)_header.ulRetainedDataSize); 347_sapiAlternatesBlob = new byte[(int)_header.ulPhraseAltDataSize]; 348Array.Copy(sapiResultBlob, (int)_header.ulPhraseAltOffset, _sapiAlternatesBlob, 0, (int)_header.ulPhraseAltDataSize); 381SPSERIALIZEDPHRASE serializedPhrase = RecognizedPhrase.GetPhraseHeader(phraseBuffer, _header.ulPhraseAltDataSize - (uint)offset, _isSapi53Header); 387bool hasIPAPronunciation = (_header.fAlphabet & (uint)SPRESULTALPHABET.SPRA_ENGINE_UPS) != 0; 454bool hasIPAPronunciation = (_header.fAlphabet & (uint)SPRESULTALPHABET.SPRA_APP_UPS) != 0; 478_alternates = ExtractAlternates((int)_header.ulNumPhraseAlts, _isSapi53Header);