2015-10-16 00:33:37 +00:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" >
< head >
< meta http-equiv = "Content-Type" content = "text/xhtml;charset=UTF-8" / >
< meta http-equiv = "X-UA-Compatible" content = "IE=9" / >
< meta name = "generator" content = "Doxygen 1.8.6" / >
2016-05-24 23:43:16 +00:00
< title > DASH Media Packaging SDK: shaka::media::LocalFile Class Reference< / title >
2015-10-16 00:33:37 +00:00
< link href = "../../tabs.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "../../jquery.js" > < / script >
< script type = "text/javascript" src = "../../dynsections.js" > < / script >
< link href = "../../search/search.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "../../search/search.js" > < / script >
< script type = "text/javascript" >
$(document).ready(function() { searchBox.OnSelectItem(0); });
< / script >
< link href = "../../doxygen.css" rel = "stylesheet" type = "text/css" / >
< / head >
< body >
< div id = "top" > <!-- do not remove this div, it is closed by doxygen! -->
< div id = "titlearea" >
< table cellspacing = "0" cellpadding = "0" >
< tbody >
< tr style = "height: 56px;" >
< td style = "padding-left: 0.5em;" >
< div id = "projectname" > DASH Media Packaging SDK
< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
< script type = "text/javascript" >
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
< / script >
< div id = "navrow1" class = "tabs" >
< ul class = "tablist" >
< li > < a href = "../../index.html" > < span > Main  Page< / span > < / a > < / li >
< li > < a href = "../../namespaces.html" > < span > Namespaces< / span > < / a > < / li >
< li class = "current" > < a href = "../../annotated.html" > < span > Classes< / span > < / a > < / li >
< li > < a href = "../../files.html" > < span > Files< / span > < / a > < / li >
< li >
< div id = "MSearchBox" class = "MSearchBoxInactive" >
< span class = "left" >
< img id = "MSearchSelect" src = "../../search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
< input type = "text" id = "MSearchField" value = "Search" accesskey = "S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
< / span > < span class = "right" >
< a id = "MSearchClose" href = "javascript:searchBox.CloseResultsWindow()" > < img id = "MSearchCloseImg" border = "0" src = "../../search/close.png" alt = "" / > < / a >
< / span >
< / div >
< / li >
< / ul >
< / div >
< div id = "navrow2" class = "tabs2" >
< ul class = "tablist" >
< li > < a href = "../../annotated.html" > < span > Class  List< / span > < / a > < / li >
< li > < a href = "../../classes.html" > < span > Class  Index< / span > < / a > < / li >
< li > < a href = "../../hierarchy.html" > < span > Class  Hierarchy< / span > < / a > < / li >
< li > < a href = "../../functions.html" > < span > Class  Members< / span > < / a > < / li >
< / ul >
< / div >
<!-- window showing the filter options -->
< div id = "MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
2016-05-11 18:03:07 +00:00
< a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(0)" > < span class = "SelectionMark" >   < / span > All< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(1)" > < span class = "SelectionMark" >   < / span > Classes< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(2)" > < span class = "SelectionMark" >   < / span > Namespaces< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(3)" > < span class = "SelectionMark" >   < / span > Functions< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(4)" > < span class = "SelectionMark" >   < / span > Variables< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(5)" > < span class = "SelectionMark" >   < / span > Typedefs< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(6)" > < span class = "SelectionMark" >   < / span > Enumerations< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(7)" > < span class = "SelectionMark" >   < / span > Enumerator< / a > < / div >
2015-10-16 00:33:37 +00:00
<!-- iframe showing the search results (closed by default) -->
< div id = "MSearchResultsWindow" >
< iframe src = "javascript:void(0)" frameborder = "0"
name="MSearchResults" id="MSearchResults">
< / iframe >
< / div >
< div id = "nav-path" class = "navpath" >
< ul >
2016-05-24 23:43:16 +00:00
< li class = "navelem" > < a class = "el" href = "../../d8/daf/namespaceshaka.html" > shaka< / a > < / li > < li class = "navelem" > < b > media< / b > < / li > < li class = "navelem" > < a class = "el" href = "../../d9/de6/classshaka_1_1media_1_1LocalFile.html" > LocalFile< / a > < / li > < / ul >
2015-10-16 00:33:37 +00:00
< / div >
< / div > <!-- top -->
< div class = "header" >
< div class = "summary" >
< a href = "#pub-methods" > Public Member Functions< / a > |
< a href = "#pub-static-methods" > Static Public Member Functions< / a > |
< a href = "#pro-methods" > Protected Member Functions< / a > |
2016-05-24 23:43:16 +00:00
< a href = "../../de/d83/classshaka_1_1media_1_1LocalFile-members.html" > List of all members< / a > < / div >
2015-10-16 00:33:37 +00:00
< div class = "headertitle" >
2016-05-24 23:43:16 +00:00
< div class = "title" > shaka::media::LocalFile Class Reference< / div > < / div >
2015-10-16 00:33:37 +00:00
< / div > <!-- header -->
< div class = "contents" >
2016-05-24 23:43:16 +00:00
< p > Implement < a class = "el" href = "../../d9/de6/classshaka_1_1media_1_1LocalFile.html" title = "Implement LocalFile which deals with local storage. " > LocalFile< / a > which deals with local storage.
< a href = "../../d9/de6/classshaka_1_1media_1_1LocalFile.html#details" > More...< / a > < / p >
2015-10-16 00:33:37 +00:00
< p > < code > #include < < a class = "el" href = "../../de/d0f/local__file_8h_source.html" > local_file.h< / a > > < / code > < / p >
< div class = "dynheader" >
2016-05-24 23:43:16 +00:00
Inheritance diagram for shaka::media::LocalFile:< / div >
2015-10-16 00:33:37 +00:00
< div class = "dyncontent" >
< div class = "center" >
2016-05-24 23:43:16 +00:00
< img src = "../../d9/de6/classshaka_1_1media_1_1LocalFile.png" usemap = "#shaka::media::LocalFile_map" alt = "" / >
< map id = "shaka::media::LocalFile_map" name = "shaka::media::LocalFile_map" >
< area href = "../../d3/d61/classshaka_1_1media_1_1File.html" title = "Define an abstract file interface. " alt = "shaka::media::File" shape = "rect" coords = "0,0,142,24" / >
2015-10-16 00:33:37 +00:00
< / map >
< / div > < / div >
< table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "pub-methods" > < / a >
Public Member Functions< / h2 > < / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "memitem:abb25b0c4dae0509458507d9afb83da0d" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d9/de6/classshaka_1_1media_1_1LocalFile.html#abb25b0c4dae0509458507d9afb83da0d" > LocalFile< / a > (const char *< a class = "el" href = "../../d3/d61/classshaka_1_1media_1_1File.html#abe158b9e7b1e073956a16c55a8fcf5f4" > file_name< / a > , const char *mode)< / td > < / tr >
< tr class = "separator:abb25b0c4dae0509458507d9afb83da0d" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2015-10-16 00:33:37 +00:00
< tr > < td colspan = "2" > < div class = "groupHeader" > File implementation overrides.< / div > < / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "memitem:a8bc11d5bf5ee05904620ab3816c6eaf4" > < td class = "memItemLeft" align = "right" valign = "top" > bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d9/de6/classshaka_1_1media_1_1LocalFile.html#a8bc11d5bf5ee05904620ab3816c6eaf4" > Close< / a > () override< / td > < / tr >
< tr class = "separator:a8bc11d5bf5ee05904620ab3816c6eaf4" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a65a1abae386202a08deb5bfa8aeef7c1" > < td class = "memItemLeft" align = "right" valign = "top" > int64_t  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d9/de6/classshaka_1_1media_1_1LocalFile.html#a65a1abae386202a08deb5bfa8aeef7c1" > Read< / a > (void *buffer, uint64_t length) override< / td > < / tr >
< tr class = "separator:a65a1abae386202a08deb5bfa8aeef7c1" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ac23125695f0cfe77adee36df9650da8b" > < td class = "memItemLeft" align = "right" valign = "top" > int64_t  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d9/de6/classshaka_1_1media_1_1LocalFile.html#ac23125695f0cfe77adee36df9650da8b" > Write< / a > (const void *buffer, uint64_t length) override< / td > < / tr >
< tr class = "separator:ac23125695f0cfe77adee36df9650da8b" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a4cc3427bb01a0989de7711b2a004a099" > < td class = "memItemLeft" align = "right" valign = "top" > int64_t  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d9/de6/classshaka_1_1media_1_1LocalFile.html#a4cc3427bb01a0989de7711b2a004a099" > Size< / a > () override< / td > < / tr >
< tr class = "separator:a4cc3427bb01a0989de7711b2a004a099" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ad09f01654ef3109b66e3fb5dd9730516" > < td class = "memItemLeft" align = "right" valign = "top" > bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d9/de6/classshaka_1_1media_1_1LocalFile.html#ad09f01654ef3109b66e3fb5dd9730516" > Flush< / a > () override< / td > < / tr >
< tr class = "separator:ad09f01654ef3109b66e3fb5dd9730516" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a6cb6e6bf3a47fbcda6d759ff4f551939" > < td class = "memItemLeft" align = "right" valign = "top" > bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d9/de6/classshaka_1_1media_1_1LocalFile.html#a6cb6e6bf3a47fbcda6d759ff4f551939" > Seek< / a > (uint64_t position) override< / td > < / tr >
< tr class = "separator:a6cb6e6bf3a47fbcda6d759ff4f551939" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ad8dd99ee399830616cd23869ed35d768" > < td class = "memItemLeft" align = "right" valign = "top" > bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d9/de6/classshaka_1_1media_1_1LocalFile.html#ad8dd99ee399830616cd23869ed35d768" > Tell< / a > (uint64_t *position) override< / td > < / tr >
< tr class = "separator:ad8dd99ee399830616cd23869ed35d768" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "inherit_header pub_methods_classshaka_1_1media_1_1File" > < td colspan = "2" onclick = "javascript:toggleInherit('pub_methods_classshaka_1_1media_1_1File')" > < img src = "../../closed.png" alt = "-" / >   Public Member Functions inherited from < a class = "el" href = "../../d3/d61/classshaka_1_1media_1_1File.html" > shaka::media::File< / a > < / td > < / tr >
< tr class = "memitem:abe158b9e7b1e073956a16c55a8fcf5f4 inherit pub_methods_classshaka_1_1media_1_1File" > < td class = "memItemLeft" align = "right" valign = "top" > const std::string &   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d3/d61/classshaka_1_1media_1_1File.html#abe158b9e7b1e073956a16c55a8fcf5f4" > file_name< / a > () const < / td > < / tr >
< tr class = "separator:abe158b9e7b1e073956a16c55a8fcf5f4 inherit pub_methods_classshaka_1_1media_1_1File" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2015-10-16 00:33:37 +00:00
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "pub-static-methods" > < / a >
Static Public Member Functions< / h2 > < / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "memitem:aab9c8faf7e459f38e2f8fb2d63e5bd59" > < td class = "memItemLeft" align = "right" valign = "top" > static bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d9/de6/classshaka_1_1media_1_1LocalFile.html#aab9c8faf7e459f38e2f8fb2d63e5bd59" > Delete< / a > (const char *< a class = "el" href = "../../d3/d61/classshaka_1_1media_1_1File.html#abe158b9e7b1e073956a16c55a8fcf5f4" > file_name< / a > )< / td > < / tr >
< tr class = "separator:aab9c8faf7e459f38e2f8fb2d63e5bd59" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "inherit_header pub_static_methods_classshaka_1_1media_1_1File" > < td colspan = "2" onclick = "javascript:toggleInherit('pub_static_methods_classshaka_1_1media_1_1File')" > < img src = "../../closed.png" alt = "-" / >   Static Public Member Functions inherited from < a class = "el" href = "../../d3/d61/classshaka_1_1media_1_1File.html" > shaka::media::File< / a > < / td > < / tr >
< tr class = "memitem:a921efa1c8f7978e3b5aac33d648b0250 inherit pub_static_methods_classshaka_1_1media_1_1File" > < td class = "memItemLeft" align = "right" valign = "top" > static < a class = "el" href = "../../d3/d61/classshaka_1_1media_1_1File.html" > File< / a > *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d3/d61/classshaka_1_1media_1_1File.html#a921efa1c8f7978e3b5aac33d648b0250" > Open< / a > (const char *< a class = "el" href = "../../d3/d61/classshaka_1_1media_1_1File.html#abe158b9e7b1e073956a16c55a8fcf5f4" > file_name< / a > , const char *mode)< / td > < / tr >
< tr class = "separator:a921efa1c8f7978e3b5aac33d648b0250 inherit pub_static_methods_classshaka_1_1media_1_1File" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ad1e9fc834093c8b35c0f8c1957974fda inherit pub_static_methods_classshaka_1_1media_1_1File" > < td class = "memItemLeft" align = "right" valign = "top" > static < a class = "el" href = "../../d3/d61/classshaka_1_1media_1_1File.html" > File< / a > *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d3/d61/classshaka_1_1media_1_1File.html#ad1e9fc834093c8b35c0f8c1957974fda" > OpenWithNoBuffering< / a > (const char *< a class = "el" href = "../../d3/d61/classshaka_1_1media_1_1File.html#abe158b9e7b1e073956a16c55a8fcf5f4" > file_name< / a > , const char *mode)< / td > < / tr >
< tr class = "separator:ad1e9fc834093c8b35c0f8c1957974fda inherit pub_static_methods_classshaka_1_1media_1_1File" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a92cdfd68e6384dfcc14c78b20c98368e inherit pub_static_methods_classshaka_1_1media_1_1File" > < td class = "memItemLeft" align = "right" valign = "top" > static bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d3/d61/classshaka_1_1media_1_1File.html#a92cdfd68e6384dfcc14c78b20c98368e" > Delete< / a > (const char *< a class = "el" href = "../../d3/d61/classshaka_1_1media_1_1File.html#abe158b9e7b1e073956a16c55a8fcf5f4" > file_name< / a > )< / td > < / tr >
< tr class = "separator:a92cdfd68e6384dfcc14c78b20c98368e inherit pub_static_methods_classshaka_1_1media_1_1File" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a6981994874ee5832e3394744fd51fd79 inherit pub_static_methods_classshaka_1_1media_1_1File" > < td class = "memItemLeft" align = "right" valign = "top" > static int64_t  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d3/d61/classshaka_1_1media_1_1File.html#a6981994874ee5832e3394744fd51fd79" > GetFileSize< / a > (const char *< a class = "el" href = "../../d3/d61/classshaka_1_1media_1_1File.html#abe158b9e7b1e073956a16c55a8fcf5f4" > file_name< / a > )< / td > < / tr >
< tr class = "separator:a6981994874ee5832e3394744fd51fd79 inherit pub_static_methods_classshaka_1_1media_1_1File" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a622dbc8abacebb40b816aa0174ba7c60 inherit pub_static_methods_classshaka_1_1media_1_1File" > < td class = "memItemLeft" align = "right" valign = "top" > static bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d3/d61/classshaka_1_1media_1_1File.html#a622dbc8abacebb40b816aa0174ba7c60" > ReadFileToString< / a > (const char *< a class = "el" href = "../../d3/d61/classshaka_1_1media_1_1File.html#abe158b9e7b1e073956a16c55a8fcf5f4" > file_name< / a > , std::string *contents)< / td > < / tr >
< tr class = "separator:a622dbc8abacebb40b816aa0174ba7c60 inherit pub_static_methods_classshaka_1_1media_1_1File" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:afacdff207ba8359eaa029d8b1414c641 inherit pub_static_methods_classshaka_1_1media_1_1File" > < td class = "memItemLeft" align = "right" valign = "top" > static bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d3/d61/classshaka_1_1media_1_1File.html#afacdff207ba8359eaa029d8b1414c641" > Copy< / a > (const char *from_file_name, const char *to_file_name)< / td > < / tr >
< tr class = "separator:afacdff207ba8359eaa029d8b1414c641 inherit pub_static_methods_classshaka_1_1media_1_1File" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a1c218b7f815bae0f48800b385ddce67e inherit pub_static_methods_classshaka_1_1media_1_1File" > < td class = "memItemLeft" align = "right" valign = "top" > static int64_t  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d3/d61/classshaka_1_1media_1_1File.html#a1c218b7f815bae0f48800b385ddce67e" > CopyFile< / a > (< a class = "el" href = "../../d3/d61/classshaka_1_1media_1_1File.html" > File< / a > *source, < a class = "el" href = "../../d3/d61/classshaka_1_1media_1_1File.html" > File< / a > *destination)< / td > < / tr >
< tr class = "separator:a1c218b7f815bae0f48800b385ddce67e inherit pub_static_methods_classshaka_1_1media_1_1File" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a9f5ebcd3bdebb7fb02a7a7adf378b344 inherit pub_static_methods_classshaka_1_1media_1_1File" > < td class = "memItemLeft" align = "right" valign = "top" > static int64_t  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d3/d61/classshaka_1_1media_1_1File.html#a9f5ebcd3bdebb7fb02a7a7adf378b344" > CopyFile< / a > (< a class = "el" href = "../../d3/d61/classshaka_1_1media_1_1File.html" > File< / a > *source, < a class = "el" href = "../../d3/d61/classshaka_1_1media_1_1File.html" > File< / a > *destination, int64_t max_copy)< / td > < / tr >
< tr class = "separator:a9f5ebcd3bdebb7fb02a7a7adf378b344 inherit pub_static_methods_classshaka_1_1media_1_1File" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2015-10-16 00:33:37 +00:00
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "pro-methods" > < / a >
Protected Member Functions< / h2 > < / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "memitem:a73844c50f00e8427233038abf45425a7" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a73844c50f00e8427233038abf45425a7" > < / a >
bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d9/de6/classshaka_1_1media_1_1LocalFile.html#a73844c50f00e8427233038abf45425a7" > Open< / a > () override< / td > < / tr >
< tr class = "memdesc:a73844c50f00e8427233038abf45425a7" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Internal open. Should not be used directly. < br / > < / td > < / tr >
< tr class = "separator:a73844c50f00e8427233038abf45425a7" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "inherit_header pro_methods_classshaka_1_1media_1_1File" > < td colspan = "2" onclick = "javascript:toggleInherit('pro_methods_classshaka_1_1media_1_1File')" > < img src = "../../closed.png" alt = "-" / >   Protected Member Functions inherited from < a class = "el" href = "../../d3/d61/classshaka_1_1media_1_1File.html" > shaka::media::File< / a > < / td > < / tr >
< tr class = "memitem:a476502e5ab3eaed4427fd3b8468211ce inherit pro_methods_classshaka_1_1media_1_1File" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a476502e5ab3eaed4427fd3b8468211ce" > < / a >
  < / td > < td class = "memItemRight" valign = "bottom" > < b > File< / b > (const std::string & < a class = "el" href = "../../d3/d61/classshaka_1_1media_1_1File.html#abe158b9e7b1e073956a16c55a8fcf5f4" > file_name< / a > )< / td > < / tr >
< tr class = "separator:a476502e5ab3eaed4427fd3b8468211ce inherit pro_methods_classshaka_1_1media_1_1File" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:aeb5c0673c6d8120d636385a1ad3b3f71 inherit pro_methods_classshaka_1_1media_1_1File" > < td class = "memItemLeft" align = "right" valign = "top" > virtual  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d3/d61/classshaka_1_1media_1_1File.html#aeb5c0673c6d8120d636385a1ad3b3f71" > ~File< / a > ()< / td > < / tr >
< tr class = "separator:aeb5c0673c6d8120d636385a1ad3b3f71 inherit pro_methods_classshaka_1_1media_1_1File" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2015-10-16 00:33:37 +00:00
< / table >
< a name = "details" id = "details" > < / a > < h2 class = "groupheader" > Detailed Description< / h2 >
2016-05-24 23:43:16 +00:00
< div class = "textblock" > < p > Implement < a class = "el" href = "../../d9/de6/classshaka_1_1media_1_1LocalFile.html" title = "Implement LocalFile which deals with local storage. " > LocalFile< / a > which deals with local storage. < / p >
2015-10-16 00:33:37 +00:00
< p > Definition at line < a class = "el" href = "../../de/d0f/local__file_8h_source.html#l00021" > 21< / a > of file < a class = "el" href = "../../de/d0f/local__file_8h_source.html" > local_file.h< / a > .< / p >
< / div > < h2 class = "groupheader" > Constructor & Destructor Documentation< / h2 >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "abb25b0c4dae0509458507d9afb83da0d" > < / a >
2015-10-16 00:33:37 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2016-05-24 23:43:16 +00:00
< td class = "memname" > shaka::media::LocalFile::LocalFile < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
< td class = "paramtype" > const char *  < / td >
< td class = "paramname" > < em > file_name< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > const char *  < / td >
< td class = "paramname" > < em > mode< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > file_name< / td > < td > C string containing the name of the file to be accessed. < / td > < / tr >
< tr > < td class = "paramname" > mode< / td > < td > C string containing a file access mode, refer to fopen for the available modes. < / td > < / tr >
< / table >
< / dd >
< / dl >
2016-08-18 20:58:33 +00:00
< p > Definition at line < a class = "el" href = "../../d6/de8/local__file_8cc_source.html#l00022" > 22< / a > of file < a class = "el" href = "../../d6/de8/local__file_8cc_source.html" > local_file.cc< / a > .< / p >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
< h2 class = "groupheader" > Member Function Documentation< / h2 >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "a8bc11d5bf5ee05904620ab3816c6eaf4" > < / a >
2015-10-16 00:33:37 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2016-05-24 23:43:16 +00:00
< td class = "memname" > bool shaka::media::LocalFile::Close < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
2015-10-19 17:27:30 +00:00
< span class = "mlabels" > < span class = "mlabel" > override< / span > < span class = "mlabel" > virtual< / span > < / span > < / td >
2015-10-16 00:33:37 +00:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
2016-05-24 23:43:16 +00:00
< p > < a class = "el" href = "../../d9/de6/classshaka_1_1media_1_1LocalFile.html#ad09f01654ef3109b66e3fb5dd9730516" > Flush()< / a > and de-allocate resources associated with this file, and delete this < a class = "el" href = "../../d3/d61/classshaka_1_1media_1_1File.html" title = "Define an abstract file interface. " > File< / a > object. THIS IS THE ONE TRUE WAY TO DEALLOCATE THIS OBJECT. < / p >
2015-10-16 00:33:37 +00:00
< dl class = "section return" > < dt > Returns< / dt > < dd > true on success. For writable files, returning false MAY INDICATE DATA LOSS. < / dd > < / dl >
2016-05-24 23:43:16 +00:00
< p > Implements < a class = "el" href = "../../d3/d61/classshaka_1_1media_1_1File.html#a2bfb0c180840356933652a795527b5c8" > shaka::media::File< / a > .< / p >
2015-10-16 00:33:37 +00:00
2016-08-18 20:58:33 +00:00
< p > Definition at line < a class = "el" href = "../../d6/de8/local__file_8cc_source.html#l00030" > 30< / a > of file < a class = "el" href = "../../d6/de8/local__file_8cc_source.html" > local_file.cc< / a > .< / p >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "aab9c8faf7e459f38e2f8fb2d63e5bd59" > < / a >
2015-10-16 00:33:37 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2016-05-24 23:43:16 +00:00
< td class = "memname" > bool shaka::media::LocalFile::Delete < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
< td class = "paramtype" > const char *  < / td >
< td class = "paramname" > < em > file_name< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > static< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Delete a local file. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > file_name< / td > < td > is the path of the file to be deleted. < / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "section return" > < dt > Returns< / dt > < dd > true if successful, or false otherwise. < / dd > < / dl >
2016-08-18 20:58:33 +00:00
< p > Definition at line < a class = "el" href = "../../d6/de8/local__file_8cc_source.html#l00104" > 104< / a > of file < a class = "el" href = "../../d6/de8/local__file_8cc_source.html" > local_file.cc< / a > .< / p >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "ad09f01654ef3109b66e3fb5dd9730516" > < / a >
2015-10-16 00:33:37 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2016-05-24 23:43:16 +00:00
< td class = "memname" > bool shaka::media::LocalFile::Flush < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
2015-10-19 17:27:30 +00:00
< span class = "mlabels" > < span class = "mlabel" > override< / span > < span class = "mlabel" > virtual< / span > < / span > < / td >
2015-10-16 00:33:37 +00:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
2016-05-24 23:43:16 +00:00
< p > Flush the file so that recently written data will survive an application crash (but not necessarily an OS crash). For instance, in < a class = "el" href = "../../d9/de6/classshaka_1_1media_1_1LocalFile.html" title = "Implement LocalFile which deals with local storage. " > LocalFile< / a > the data is flushed into the OS but not necessarily to disk. < / p >
2015-10-16 00:33:37 +00:00
< dl class = "section return" > < dt > Returns< / dt > < dd > true on success, false otherwise. < / dd > < / dl >
2016-05-24 23:43:16 +00:00
< p > Implements < a class = "el" href = "../../d3/d61/classshaka_1_1media_1_1File.html#aba73e887fbfe2de3a679c679ddf03f4b" > shaka::media::File< / a > .< / p >
2015-10-16 00:33:37 +00:00
2016-08-18 20:58:33 +00:00
< p > Definition at line < a class = "el" href = "../../d6/de8/local__file_8cc_source.html#l00070" > 70< / a > of file < a class = "el" href = "../../d6/de8/local__file_8cc_source.html" > local_file.cc< / a > .< / p >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "a65a1abae386202a08deb5bfa8aeef7c1" > < / a >
2015-10-16 00:33:37 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2016-05-24 23:43:16 +00:00
< td class = "memname" > int64_t shaka::media::LocalFile::Read < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
< td class = "paramtype" > void *  < / td >
< td class = "paramname" > < em > buffer< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > uint64_t  < / td >
< td class = "paramname" > < em > length< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
2015-10-19 17:27:30 +00:00
< span class = "mlabels" > < span class = "mlabel" > override< / span > < span class = "mlabel" > virtual< / span > < / span > < / td >
2015-10-16 00:33:37 +00:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Read data and return it in buffer. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramdir" > [out]< / td > < td class = "paramname" > buffer< / td > < td > points to a block of memory with a size of at least < em > length< / em > bytes. < / td > < / tr >
< tr > < td class = "paramdir" > < / td > < td class = "paramname" > length< / td > < td > indicates number of bytes to be read. < / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "section return" > < dt > Returns< / dt > < dd > Number of bytes read, or a value < 0 on error. Zero on end-of-file, or if 'length' is zero. < / dd > < / dl >
2016-05-24 23:43:16 +00:00
< p > Implements < a class = "el" href = "../../d3/d61/classshaka_1_1media_1_1File.html#aed0c0793fd8751330583314a4d3012b9" > shaka::media::File< / a > .< / p >
2015-10-16 00:33:37 +00:00
2016-08-18 20:58:33 +00:00
< p > Definition at line < a class = "el" href = "../../d6/de8/local__file_8cc_source.html#l00040" > 40< / a > of file < a class = "el" href = "../../d6/de8/local__file_8cc_source.html" > local_file.cc< / a > .< / p >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "a6cb6e6bf3a47fbcda6d759ff4f551939" > < / a >
2015-10-16 00:33:37 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2016-05-24 23:43:16 +00:00
< td class = "memname" > bool shaka::media::LocalFile::Seek < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
< td class = "paramtype" > uint64_t  < / td >
< td class = "paramname" > < em > position< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
2015-10-19 17:27:30 +00:00
< span class = "mlabels" > < span class = "mlabel" > override< / span > < span class = "mlabel" > virtual< / span > < / span > < / td >
2015-10-16 00:33:37 +00:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Seek to the specifield position in the file. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > position< / td > < td > is the position to seek to. < / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "section return" > < dt > Returns< / dt > < dd > true on success, false otherwise. < / dd > < / dl >
2016-05-24 23:43:16 +00:00
< p > Implements < a class = "el" href = "../../d3/d61/classshaka_1_1media_1_1File.html#a3baaa3207abaeb6af1a8239ee866b5d3" > shaka::media::File< / a > .< / p >
2015-10-16 00:33:37 +00:00
2016-08-18 20:58:33 +00:00
< p > Definition at line < a class = "el" href = "../../d6/de8/local__file_8cc_source.html#l00075" > 75< / a > of file < a class = "el" href = "../../d6/de8/local__file_8cc_source.html" > local_file.cc< / a > .< / p >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "a4cc3427bb01a0989de7711b2a004a099" > < / a >
2015-10-16 00:33:37 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2016-05-24 23:43:16 +00:00
< td class = "memname" > int64_t shaka::media::LocalFile::Size < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
2015-10-19 17:27:30 +00:00
< span class = "mlabels" > < span class = "mlabel" > override< / span > < span class = "mlabel" > virtual< / span > < / span > < / td >
2015-10-16 00:33:37 +00:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
< dl class = "section return" > < dt > Returns< / dt > < dd > Size of the file in bytes. A return value less than zero indicates a problem getting the size. < / dd > < / dl >
2016-05-24 23:43:16 +00:00
< p > Implements < a class = "el" href = "../../d3/d61/classshaka_1_1media_1_1File.html#adffa2c3d12ae0a579704cf1f5b3bf8ab" > shaka::media::File< / a > .< / p >
2015-10-16 00:33:37 +00:00
2016-08-18 20:58:33 +00:00
< p > Definition at line < a class = "el" href = "../../d6/de8/local__file_8cc_source.html#l00052" > 52< / a > of file < a class = "el" href = "../../d6/de8/local__file_8cc_source.html" > local_file.cc< / a > .< / p >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "ad8dd99ee399830616cd23869ed35d768" > < / a >
2015-10-16 00:33:37 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2016-05-24 23:43:16 +00:00
< td class = "memname" > bool shaka::media::LocalFile::Tell < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
< td class = "paramtype" > uint64_t *  < / td >
< td class = "paramname" > < em > position< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
2015-10-19 17:27:30 +00:00
< span class = "mlabels" > < span class = "mlabel" > override< / span > < span class = "mlabel" > virtual< / span > < / span > < / td >
2015-10-16 00:33:37 +00:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Get the current file position. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > position< / td > < td > is a pointer to contain the current file position upon successful return. < / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "section return" > < dt > Returns< / dt > < dd > true on succcess, false otherwise. < / dd > < / dl >
2016-05-24 23:43:16 +00:00
< p > Implements < a class = "el" href = "../../d3/d61/classshaka_1_1media_1_1File.html#a57dd80258b1989f85d99c154ba377db8" > shaka::media::File< / a > .< / p >
2015-10-16 00:33:37 +00:00
2016-08-18 20:58:33 +00:00
< p > Definition at line < a class = "el" href = "../../d6/de8/local__file_8cc_source.html#l00084" > 84< / a > of file < a class = "el" href = "../../d6/de8/local__file_8cc_source.html" > local_file.cc< / a > .< / p >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "ac23125695f0cfe77adee36df9650da8b" > < / a >
2015-10-16 00:33:37 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2016-05-24 23:43:16 +00:00
< td class = "memname" > int64_t shaka::media::LocalFile::Write < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
< td class = "paramtype" > const void *  < / td >
< td class = "paramname" > < em > buffer< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > uint64_t  < / td >
< td class = "paramname" > < em > length< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
2015-10-19 17:27:30 +00:00
< span class = "mlabels" > < span class = "mlabel" > override< / span > < span class = "mlabel" > virtual< / span > < / span > < / td >
2015-10-16 00:33:37 +00:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Write block of data. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > buffer< / td > < td > points to a block of memory with at least < em > length< / em > bytes. < / td > < / tr >
< tr > < td class = "paramname" > length< / td > < td > indicates number of bytes to write. < / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "section return" > < dt > Returns< / dt > < dd > Number of bytes written, or a value < 0 on error. < / dd > < / dl >
2016-05-24 23:43:16 +00:00
< p > Implements < a class = "el" href = "../../d3/d61/classshaka_1_1media_1_1File.html#a3149670c0d085e71f0aa085ee87fdda5" > shaka::media::File< / a > .< / p >
2015-10-16 00:33:37 +00:00
2016-08-18 20:58:33 +00:00
< p > Definition at line < a class = "el" href = "../../d6/de8/local__file_8cc_source.html#l00046" > 46< / a > of file < a class = "el" href = "../../d6/de8/local__file_8cc_source.html" > local_file.cc< / a > .< / p >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
< hr / > The documentation for this class was generated from the following files:< ul >
< li > media/file/< a class = "el" href = "../../de/d0f/local__file_8h_source.html" > local_file.h< / a > < / li >
< li > media/file/< a class = "el" href = "../../d6/de8/local__file_8cc_source.html" > local_file.cc< / a > < / li >
< / ul >
< / div > <!-- contents -->
<!-- start footer part -->
< hr class = "footer" / > < address class = "footer" > < small >
2017-03-21 17:24:18 +00:00
Generated on Tue Mar 21 2017 17:24:13 for DASH Media Packaging SDK by   < a href = "http://www.doxygen.org/index.html" >
2015-10-16 00:33:37 +00:00
< img class = "footer" src = "../../doxygen.png" alt = "doxygen" / >
< / a > 1.8.6
< / small > < / address >
< / body >
< / html >