/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.IO.Ports/tests/SerialPort/ |
H A D | Stress01.cs | 51 if (com2.BytesToRead < MAX_BUFFER_SIZE) in WriteChars() 53 int maxNumberOfCharactes = (MAX_BUFFER_SIZE - com2.BytesToRead) / 2; in WriteChars() 56 int expectedBytesToRead = com2.BytesToRead + 2 * numberOfCharacters; in WriteChars() 62 … TCSupport.WaitForPredicate(delegate () { return com2.BytesToRead == expectedBytesToRead; }, in WriteChars() 65 com2.BytesToRead); in WriteChars() 69 if (0 < com2.BytesToRead) in WriteChars() 71 int maxNumberOfCharactes = com2.BytesToRead / 2; in WriteChars() 75 … int expectedBytesToRead = com2.BytesToRead - (2 * numberOfCharacters); in WriteChars() 84 if (com2.BytesToRead != expectedBytesToRead) in WriteChars() 87 expectedBytesToRead, com2.BytesToRead); in WriteChars()
|
H A D | ReadChar.cs | 111 Assert.Equal(1, com1.BytesToRead); in ReadTimeout_Zero_ResizeBuffer() 118 Assert.Equal(1, com1.BytesToRead); in ReadTimeout_Zero_ResizeBuffer() 165 Assert.Equal(1, com1.BytesToRead); in ReadTimeout_NonZero_ResizeBuffer() 172 Assert.Equal(1, com1.BytesToRead); in ReadTimeout_NonZero_ResizeBuffer() 216 Assert.Equal(1, com1.BytesToRead); in GreedyRead() 228 Assert.Equal(0, com1.BytesToRead); in GreedyRead() 263 Assert.Equal(0, com1.BytesToRead); in ReadTimeout_Zero_Bytes() 273 Assert.Equal(1, com1.BytesToRead); in ReadTimeout_Zero_Bytes() 372 Assert.Equal(3, com1.BytesToRead); in Read_Timeout() 596 int com1ToRead = com1.BytesToRead; in PerformReadOnCom1FromCom2() [all …]
|
H A D | ReceivedEvent.cs | 205 public ArrayList BytesToRead; field in System.IO.Ports.Tests.ReceivedEvent.ReceivedEventHandler 216 BytesToRead = new ArrayList(); in ReceivedEventHandler() 222 int bytesToRead = com.BytesToRead; in HandleEvent() 226 BytesToRead.Add(bytesToRead); in HandleEvent() 242 BytesToRead.Clear(); in Clear() 300 …if (eventType == (SerialData)EventType[i] && bytesToRead <= (int)BytesToRead[i] && (SerialPort)Sou… in Validate() 303 BytesToRead.RemoveAt(i); in Validate() 368 if ((_bytesRead.Length - _numBytesRead) < com.BytesToRead) in HandleEvent() 370 …e[] tempByteArray = new byte[Math.Max(_bytesRead.Length * 2, _bytesRead.Length + com.BytesToRead)]; in HandleEvent()
|
H A D | Read_byte_int_int.cs | 252 if (1 != com1.BytesToRead) in GreedyRead() 254 Fail("Err_9416sapz ExpectedByteToRead={0} actual={1}", 1, com1.BytesToRead); in GreedyRead() 277 if (0 != com1.BytesToRead) in GreedyRead() 279 Fail("Err_78028asdf ExpectedByteToRead={0} actual={1}", 0, com1.BytesToRead); in GreedyRead() 469 while (com1.BytesToRead < bytesToWrite.Length) in BufferData() 476 Assert.Equal(bytesToWrite.Length, com1.BytesToRead); in BufferData() 504 bytesToRead = com1.BytesToRead; in PerformReadOnCom1FromCom2() 535 if (expectedBytes.Length - totalBytesRead != com1.BytesToRead) in PerformReadOnCom1FromCom2() 541 bytesToRead = com1.BytesToRead; in PerformReadOnCom1FromCom2() 555 if (0 != com1.BytesToRead) in PerformReadOnCom1FromCom2() [all …]
|
H A D | Read_char_int_int.cs | 343 Assert.Equal(1, com1.BytesToRead); in GreedyRead() 371 Assert.Equal(0, com1.BytesToRead); in GreedyRead() 472 TCSupport.WaitForPredicate(() => com1.BytesToRead == 17, 2000, in Read_ResizeBuffer() 536 Assert.Equal(3, com1.BytesToRead); in Read_Timeout() 543 TCSupport.WaitForExpected(() => com1.BytesToRead, byteXmitBuffer.Length, in Read_Timeout() 582 TCSupport.WaitForExpected(() => com1.BytesToRead, 7, in Read_Partial() 807 Assert.Equal(bytesToWrite.Length, com1.BytesToRead); in BufferData() 890 Assert.Equal(numBytesWritten - totalBytesRead, com1.BytesToRead); in PerformReadOnCom1FromCom2() 906 Assert.Equal(0, com1.BytesToRead); in PerformReadOnCom1FromCom2() 956 if (com1.BytesToRead == xmitByteBuffer.Length + 1) in VerifyBytesFollowedByChars() [all …]
|
H A D | ReadByte.cs | 224 if (com1.BytesToRead != bytesToWrite.Length) in BufferData() 226 …ail("Err_7083zaz Expected com1.BytesToRead={0} actual={1}", bytesToWrite.Length, com1.BytesToRead); in BufferData() 276 if (expectedBytes.Length - i != com1.BytesToRead) in PerformReadOnCom1FromCom2() 278 … Fail("ERROR!!!: Expected BytesToRead={0} actual={1}", expectedBytes.Length - i, com1.BytesToRead); in PerformReadOnCom1FromCom2() 282 if (0 != com1.BytesToRead) in PerformReadOnCom1FromCom2() 284 Fail("ERROR!!!: Expected BytesToRead=0 actual BytesToRead={0}", com1.BytesToRead); in PerformReadOnCom1FromCom2()
|
H A D | ReadTo.cs | 283 Assert.Equal(1, com1.BytesToRead); in GreedyRead() 308 Assert.Equal(0, com1.BytesToRead); in GreedyRead() 470 Assert.Equal(2 * charXmitBuffer.Length, com1.BytesToRead); in Read_Timeout() 689 while (com1.BytesToRead < bytesToWrite.Length + 1) in BufferData() 695 Assert.Equal(bytesToWrite.Length, com1.BytesToRead); in BufferData() 787 if (bytesToWrite.Length - totalBytesRead != com1.BytesToRead) in PerformReadOnCom1FromCom2() 789 …!!!: Expected BytesToRead={0} actual={1}", bytesToWrite.Length - totalBytesRead, com1.BytesToRead); in PerformReadOnCom1FromCom2() 793 if (0 != com1.BytesToRead) in PerformReadOnCom1FromCom2() 809 if (0 != com1.BytesToRead && (!isUTF7Encoding || 1 != com1.BytesToRead)) in PerformReadOnCom1FromCom2() 876 if (0 != com1.BytesToRead && (!isUTF7Encoding || 1 != com1.BytesToRead)) in VerifyReadToWithWriteLine() [all …]
|
H A D | Read_byte_int_int_Generic.cs | 238 while (bytesToWrite.Length + 1 > com1.BytesToRead && waitTime < 500) in ParityErrorOnLastByte() 249 if (1 < com1.BytesToRead) in ParityErrorOnLastByte() 251 Fail("ERROR!!!: Expected BytesToRead=0 actual={0}", com1.BytesToRead); in ParityErrorOnLastByte() 424 bytesToRead = com1.BytesToRead; in VerifyRead() 455 if (bytesToWrite.Length - totalBytesRead != com1.BytesToRead) in VerifyRead() 458 com1.BytesToRead); in VerifyRead() 461 bytesToRead = com1.BytesToRead; in VerifyRead()
|
H A D | Handshake.cs | 720 if (com2.BytesToRead != 0) in VerirfyXOnXOffBufferFull() 727 if (com2.BytesToRead != 0) in VerirfyXOnXOffBufferFull() 729 … Fail("Err_5258aieodpo Did not expect anything to be sent com2.BytesToRead={0}", com2.BytesToRead); in VerirfyXOnXOffBufferFull() 739 if (com2.BytesToRead != 1) in VerirfyXOnXOffBufferFull() 750 if (com2.BytesToRead != 0) in VerirfyXOnXOffBufferFull() 762 if (com2.BytesToRead != 0) in VerirfyXOnXOffBufferFull() 769 if (com2.BytesToRead != 0) in VerirfyXOnXOffBufferFull() 782 if (com2.BytesToRead != 1) in VerirfyXOnXOffBufferFull() 793 if (com2.BytesToRead != 0) in VerirfyXOnXOffBufferFull()
|
H A D | ReadExisting_Generic.cs | 180 if (1 < com1.BytesToRead) in ParityErrorOnLastByte() 182 Fail("ERROR!!!: Expected BytesToRead=0 actual={0}", com1.BytesToRead); in ParityErrorOnLastByte() 305 while (0 != com1.BytesToRead) in VerifyRead() 325 if (bytesToWrite.Length - totalBytesRead != com1.BytesToRead) in VerifyRead() 328 com1.BytesToRead); in VerifyRead()
|
H A D | Read_char_int_int_Generic.cs | 246 if (1 < com1.BytesToRead) in ParityErrorOnLastByte() 249 Fail("ERROR!!!: Expected BytesToRead=0 actual={0}", com1.BytesToRead); in ParityErrorOnLastByte() 420 bytesToRead = com1.BytesToRead; in VerifyRead() 454 if (bytesToWrite.Length - totalBytesRead != com1.BytesToRead) in VerifyRead() 457 com1.BytesToRead); in VerifyRead() 460 bytesToRead = com1.BytesToRead; in VerifyRead()
|
H A D | ReadLine_Generic.cs | 233 if (1 < com1.BytesToRead) in ParityErrorOnLastByte() 236 Fail("ERROR!!!: Expected BytesToRead=0 actual={0}", com1.BytesToRead); in ParityErrorOnLastByte() 425 bytesToRead = com1.BytesToRead; in VerifyRead() 468 if (bytesToWrite.Length - totalBytesRead != com1.BytesToRead) in VerifyRead() 471 com1.BytesToRead); in VerifyRead() 474 bytesToRead = com1.BytesToRead; in VerifyRead()
|
/dports/games/vavoom/vavoom-1.33/source/ |
H A D | zipstream.cpp | 69 vint32 BytesToRead = BUFFER_SIZE; in VZipStreamReader() local 70 if (BytesToRead > SrcStream->TotalSize()) in VZipStreamReader() 71 BytesToRead = SrcStream->TotalSize(); in VZipStreamReader() 73 SrcStream->Serialise(Buffer, BytesToRead); in VZipStreamReader() 80 ZStream.avail_in = BytesToRead; in VZipStreamReader() 145 vint32 BytesToRead = BUFFER_SIZE; in Serialise() local 146 if (BytesToRead > SrcStream->TotalSize() - SrcStream->Tell()) in Serialise() 147 BytesToRead = SrcStream->TotalSize() - SrcStream->Tell(); in Serialise() 148 SrcStream->Serialise(Buffer, BytesToRead); in Serialise() 155 ZStream.avail_in = BytesToRead; in Serialise()
|
/dports/multimedia/mxflib/mxflib-1.0.1/mxflib/ |
H A D | klvobject.cpp | 126 Length BytesToRead = Source.OuterLength - Offset; in Base_ReadDataFrom() local 129 if( (Size > 0) && (Size < BytesToRead)) BytesToRead = Size; in Base_ReadDataFrom() 132 if(BytesToRead <= 0) in Base_ReadDataFrom() 139 if((sizeof(size_t) < 8) && (BytesToRead > 0xffffffff)) in Base_ReadDataFrom() 152 Buffer.Resize(static_cast<size_t>(BytesToRead)); in Base_ReadDataFrom() 158 if(Bytes != static_cast<size_t>(BytesToRead)) Buffer.Resize(Bytes); in Base_ReadDataFrom()
|
H A D | crypto.cpp | 595 Length BytesToRead = EncryptedLength - Offset; in ReadCryptoDataFrom() local 598 if( (Size != static_cast<size_t>(-1)) && (Size < BytesToRead)) BytesToRead = Size; in ReadCryptoDataFrom() 601 CurrentReadOffset += BytesToRead; in ReadCryptoDataFrom() 604 if(BytesToRead <= PreDecrypted) in ReadCryptoDataFrom() 607 Data.Set(static_cast<size_t>(BytesToRead), PreDecryptBuffer); in ReadCryptoDataFrom() 612 BytesToRead = ValueLength - Offset; in ReadCryptoDataFrom() 613 Data.Resize(static_cast<size_t>(BytesToRead)); in ReadCryptoDataFrom() 617 …mmove(PreDecryptBuffer, &PreDecryptBuffer[BytesToRead], static_cast<size_t>(EncryptionGranularity … in ReadCryptoDataFrom() 620 return static_cast<size_t>(BytesToRead); in ReadCryptoDataFrom() 625 …Length BytesToDecrypt = ((BytesToRead - PreDecrypted) + (EncryptionGranularity - 1)) / EncryptionG… in ReadCryptoDataFrom()
|
/dports/cad/leocad/leocad-21.06/common/ |
H A D | lc_file.cpp | 70 size_t BytesToRead; in ReadBuffer() local 73 BytesToRead = mFileSize - mPosition; in ReadBuffer() 75 BytesToRead = Bytes; in ReadBuffer() 77 memcpy(Buffer, mBuffer + mPosition, BytesToRead); in ReadBuffer() 78 mPosition += BytesToRead; in ReadBuffer() 80 return BytesToRead; in ReadBuffer()
|
/dports/biology/mothur/mothur-1.46.1/source/uchime_src/ |
H A D | sfasta.cpp | 319 unsigned BytesToRead = unsigned(otBytesToRead); in FillCache() local 320 asserta(BytesToRead > 0); in FillCache() 321 asserta(BytesToRead <= m_BufferSize); in FillCache() 324 ReadStdioFile(m_File, m_Buffer, BytesToRead); in FillCache() 338 m_BufferBytes = BytesToRead; in FillCache() 339 m_FilePos += BytesToRead; in FillCache() 346 byte *ptr = m_Buffer + BytesToRead - 1; in FillCache() 364 (unsigned) m_FilePos, BytesToRead); in FillCache() 370 (unsigned) m_FilePos, BytesToRead); in FillCache()
|
/dports/www/dfileserver/DFileServer/src/ |
H A D | DashFileServer.cxx | 816 int BytesToRead, BytesRead; in main() local 820 BytesToRead = sizeof( Buffer ) - 1; in main() 832 if ( BytesToRead > ConnectionListIterator->BandwidthLeft ) in main() 833 BytesToRead = ConnectionListIterator->BandwidthLeft; in main() 835 ConnectionListIterator->BandwidthLeft -= BytesToRead; in main() 839 if ( BytesToRead > ConnectionListIterator->BytesRemaining ) in main() 840 BytesToRead = ConnectionListIterator->BytesRemaining; in main() 853 ConnectionListIterator->SendBufferIterator += BytesToRead; in main() 861 if (BytesRead != BytesToRead) in main() 867 int LocationOffset = BytesToRead - BytesRead; in main() [all …]
|
/dports/sysutils/boxbackup-devel/boxbackup-0.11_trunk_2979/lib/common/ |
H A D | PartialReadStream.cpp | 87 pos_type BytesToRead) in PartialReadStream() argument 89 mBytesLeft(BytesToRead) in PartialReadStream() 91 ASSERT(BytesToRead > 0); in PartialReadStream()
|
/dports/editors/libreoffice/libreoffice-7.2.6.2/sal/osl/w32/ |
H A D | pipe.cxx | 362 sal_Int32 BytesToRead) in osl_receivePipe() argument 373 if (!ReadFile(pPipe->m_File, pBuffer, BytesToRead, &nBytes, &os) && in osl_receivePipe() 381 nBytes = BytesToRead; in osl_receivePipe() 453 sal_Int32 BytesToRead = n; in osl_readPipe() local 456 while (BytesToRead > 0) in osl_readPipe() 459 RetVal= osl_receivePipe(pPipe, pBuffer, BytesToRead); in osl_readPipe() 465 BytesToRead -= RetVal; in osl_readPipe()
|
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.IO.Ports/tests/SerialStream/ |
H A D | BeginRead_Generic.cs | 191 if (1 < com1.BytesToRead) in ParityErrorOnLastByte() 193 Fail("ERROR!!!: Expected BytesToRead=0 actual={0}", com1.BytesToRead); in ParityErrorOnLastByte() 408 bytesToRead = com1.BytesToRead; in VerifyRead() 410 while (0 != com1.BytesToRead) in VerifyRead() 431 if (bytesToWrite.Length - totalBytesRead != com1.BytesToRead) in VerifyRead() 433 …!!!: Expected BytesToRead={0} actual={1}", bytesToWrite.Length - totalBytesRead, com1.BytesToRead); in VerifyRead() 436 bytesToRead = com1.BytesToRead; in VerifyRead()
|
H A D | Read_byte_int_int_Generic.cs | 240 if (1 < com1.BytesToRead) in ParityErrorOnLastByte() 242 Fail("ERROR!!!: Expected BytesToRead=0 actual={0}", com1.BytesToRead); in ParityErrorOnLastByte() 434 bytesToRead = com1.BytesToRead; in VerifyRead() 465 if (bytesToWrite.Length - totalBytesRead != com1.BytesToRead) in VerifyRead() 467 …!!!: Expected BytesToRead={0} actual={1}", bytesToWrite.Length - totalBytesRead, com1.BytesToRead); in VerifyRead() 470 bytesToRead = com1.BytesToRead; in VerifyRead()
|
/dports/editors/libreoffice6/libreoffice-6.4.7.2/sal/osl/w32/ |
H A D | pipe.cxx | 371 sal_Int32 BytesToRead) in osl_receivePipe() argument 382 if (!ReadFile(pPipe->m_File, pBuffer, BytesToRead, &nBytes, &os) && in osl_receivePipe() 390 nBytes = BytesToRead; in osl_receivePipe() 462 sal_Int32 BytesToRead = n; in osl_readPipe() local 465 while (BytesToRead > 0) in osl_readPipe() 468 RetVal= osl_receivePipe(pPipe, pBuffer, BytesToRead); in osl_readPipe() 474 BytesToRead -= RetVal; in osl_readPipe()
|
/dports/editors/libreoffice/libreoffice-7.2.6.2/sal/osl/unx/ |
H A D | pipe.cxx | 427 sal_Int32 BytesToRead) in osl_receivePipe() argument 439 nRet = recv(pPipe->m_Socket, pBuffer, BytesToRead, 0); in osl_receivePipe() 503 sal_Int32 BytesToRead = n; in osl_readPipe() local 506 while (BytesToRead > 0) in osl_readPipe() 509 RetVal= osl_receivePipe(pPipe, pBuffer, BytesToRead); in osl_readPipe() 515 BytesToRead -= RetVal; in osl_readPipe()
|
/dports/editors/libreoffice6/libreoffice-6.4.7.2/sal/osl/unx/ |
H A D | pipe.cxx | 426 sal_Int32 BytesToRead) in osl_receivePipe() argument 438 nRet = recv(pPipe->m_Socket, pBuffer, BytesToRead, 0); in osl_receivePipe() 502 sal_Int32 BytesToRead = n; in osl_readPipe() local 505 while (BytesToRead > 0) in osl_readPipe() 508 RetVal= osl_receivePipe(pPipe, pBuffer, BytesToRead); in osl_readPipe() 514 BytesToRead -= RetVal; in osl_readPipe()
|