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

      Write_(temp_nonconst.GetBuffer(), sizeof(TCHAR), temp_nonconst.GetLength());
   }
예제 #3
0
파일: shine.cpp 프로젝트: broady/shine
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);
}
예제 #4
0
파일: sink.hpp 프로젝트: u3shit/neptools
    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);
    }
예제 #5
0
 void
 File::Write(const unsigned char *pBuf, int iBufLen)
 {
    Write_((void*) pBuf, 1, iBufLen);
 }