Exemple #1
0
 void
 File::Write(const AnsiString &sWrite)
 {  
    AnsiString temp_nonconst = sWrite;
    
    Write_(temp_nonconst.GetBuffer(), sizeof(char), temp_nonconst.GetLength());
 }
Exemple #2
0
   void
   File::Write(const String &sWrite)
   {
      String temp_nonconst = sWrite;

      Write_(temp_nonconst.GetBuffer(), sizeof(TCHAR), temp_nonconst.GetLength());
   }
Exemple #3
0
void ShineImpl::write(char* data) {
    SendCommand('p');

    // TODO(jmcgill): Consider adding line numbers back in. Means Write must
    // be a macro.

    // Write the debug string.
    Write_(data);
    transport_->SendByte(0);
}
Exemple #4
0
    void Write(StringView data)
    {
        NEPTOOLS_CHECK(SinkOverflow, offset+buf_put+data.length() <= size,
                       "Sink overflow during write");
        auto cp = std::min(data.length(), size_t(buf_size - buf_put));
        memcpy(buf+buf_put, data.data(), cp);
        data.remove_prefix(cp);
        buf_put += cp;

        if (!data.empty()) Write_(data);
    }
Exemple #5
0
 void
 File::Write(const unsigned char *pBuf, int iBufLen)
 {
    Write_((void*) pBuf, 1, iBufLen);
 }