Home | History | Annotate | Download | only in compact_lang_det
      1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #include "encodings/compact_lang_det/string_byte_sink.h"
      6 
      7 #include <string>
      8 
      9 using std::string;
     10 
     11 StringByteSink::StringByteSink(string* dest) : dest_(dest) {}
     12 
     13 StringByteSink::~StringByteSink() {}
     14 
     15 void StringByteSink::Append(const char* data, int32_t n) {
     16   dest_->append(data, n);
     17 }
     18