#include "third_party/blink/renderer/core/fileapi/file_reader_data.h"
#include "third_party/blink/renderer/core/html/parser/text_resource_decoder.h"
#include "third_party/blink/renderer/platform/wtf/text/base64.h"
#include "third_party/blink/renderer/platform/wtf/text/string_builder.h"
namespace blink {
namespace {
DOMArrayBuffer* ToDOMArrayBuffer(ArrayBufferContents raw_data) { … }
String ToDataURL(ArrayBufferContents raw_data, const String& data_type) { … }
String ToBinaryString(ArrayBufferContents raw_data) { … }
String ToTextString(ArrayBufferContents raw_data,
const WTF::TextEncoding& encoding) { … }
String ToString(ArrayBufferContents raw_data,
FileReadType read_type,
const WTF::TextEncoding& encoding,
const String& data_type) { … }
}
ArrayBufferContents FileReaderData::AsArrayBufferContents() && { … }
DOMArrayBuffer* FileReaderData::AsDOMArrayBuffer() && { … }
String FileReaderData::AsBinaryString() && { … }
String FileReaderData::AsText(const String& encoding) && { … }
String FileReaderData::AsDataURL(const String& data_type) && { … }
String FileReaderData::AsString(FileReadType read_type,
const String& encoding,
const String& data_type) && { … }
}