Added FileReader and FileWriter classes to wrap FileCloser 28/142128/1
authorDavid Steele <david.steele@samsung.com>
Wed, 2 Aug 2017 15:34:27 +0000 (16:34 +0100)
committerDavid Steele <david.steele@samsung.com>
Wed, 2 Aug 2017 20:14:06 +0000 (21:14 +0100)
commitd8f0d0809cf9c706f1f199b32abeedd1136feac5
treeca9066a16a0b3e4a32c5abf5db3ddd09d8a30407
parent482152634bba9ec7a2b4eda7655a025dc149b6cc
Added FileReader and FileWriter classes to wrap FileCloser

Abstracted FileCloser to make the code tidier;

Changed FileWriter to extend the buffer so that on certain platforms,
the last data byte doesn't get overwritten.

Change-Id: I3ff2f252ce42462e33c483d65fb8fb69ff3549f8
Signed-off-by: David Steele <david.steele@samsung.com>
adaptors/devel-api/adaptor-framework/image-loading.cpp
platform-abstractions/portable/file-closer.h
platform-abstractions/portable/file-reader.h [new file with mode: 0644]
platform-abstractions/portable/file-writer.h [new file with mode: 0644]
platform-abstractions/tizen/image-loaders/image-loader.cpp
platform-abstractions/tizen/resource-loader/network/file-download.cpp
platform-abstractions/tizen/tizen-platform-abstraction.cpp