Cary Clark | d2ca79c | 2018-08-10 13:09:13 -0400 | [diff] [blame] | 1 | #Topic FILEStream |
| 2 | #Alias FILEStream_Reference ## |
| 3 | |
| 4 | #Class SkFILEStream |
| 5 | |
| 6 | A stream that wraps a C FILE* file stream. */ |
| 7 | |
| 8 | #Subtopic Overview |
| 9 | #Populate |
| 10 | ## |
| 11 | |
| 12 | #Subtopic Constructor |
| 13 | #Populate |
| 14 | ## |
| 15 | |
| 16 | #Subtopic Member_Function |
| 17 | #Populate |
| 18 | ## |
| 19 | |
| 20 | # ------------------------------------------------------------------------------ |
| 21 | |
| 22 | #Method explicit SkFILEStream(const char path[] = nullptr) |
| 23 | #In Constructor |
| 24 | #Line # incomplete ## |
| 25 | |
| 26 | Initializes Stream by reading data contained by path. |
| 27 | File descriptor is opened here and is closed when SkFILEStream |
| 28 | Destructor is invoked. |
| 29 | |
| 30 | #Param path incomplete ## |
| 31 | |
| 32 | #Return incomplete ## |
| 33 | |
| 34 | #Example |
| 35 | // incomplete |
| 36 | ## |
| 37 | |
| 38 | #SeeAlso incomplete |
| 39 | |
| 40 | #Method ## |
| 41 | |
| 42 | # ------------------------------------------------------------------------------ |
| 43 | |
| 44 | #Method explicit SkFILEStream(FILE* file) |
| 45 | #In Constructor |
| 46 | #Line # incomplete ## |
| 47 | |
| 48 | Initialize the stream with an existing C_FILE stream. |
| 49 | The current position of the C_FILE stream will be considered the |
| 50 | beginning of the SkFILEStream. |
| 51 | The C_FILE stream is closed when SkFILEStream Destructor is invoked. |
| 52 | |
| 53 | #Param file incomplete ## |
| 54 | |
| 55 | #Return incomplete ## |
| 56 | |
| 57 | #Example |
| 58 | // incomplete |
| 59 | ## |
| 60 | |
| 61 | #SeeAlso incomplete |
| 62 | |
| 63 | #Method ## |
| 64 | |
| 65 | # ------------------------------------------------------------------------------ |
| 66 | |
| 67 | #Method ~SkFILEStream() override |
| 68 | #In Constructor |
| 69 | #Line # incomplete ## |
| 70 | |
| 71 | #Example |
| 72 | // incomplete |
| 73 | ## |
| 74 | |
| 75 | #SeeAlso incomplete |
| 76 | |
| 77 | #Method ## |
| 78 | |
| 79 | # ------------------------------------------------------------------------------ |
| 80 | |
| 81 | #Method static std::unique_ptr<SkFILEStream> Make(const char path[]) |
| 82 | #In incomplete |
| 83 | #Line # incomplete ## |
| 84 | |
| 85 | #Param path incomplete ## |
| 86 | |
| 87 | #Return incomplete ## |
| 88 | |
| 89 | #Example |
| 90 | // incomplete |
| 91 | ## |
| 92 | |
| 93 | #SeeAlso incomplete |
| 94 | |
| 95 | #Method ## |
| 96 | |
| 97 | # ------------------------------------------------------------------------------ |
| 98 | |
| 99 | #Method bool isValid() const |
| 100 | #In incomplete |
| 101 | #Line # incomplete ## |
| 102 | |
| 103 | Returns true if the current path could be opened. |
| 104 | |
| 105 | #Return incomplete ## |
| 106 | |
| 107 | #Example |
| 108 | // incomplete |
| 109 | ## |
| 110 | |
| 111 | #SeeAlso incomplete |
| 112 | |
| 113 | #Method ## |
| 114 | |
| 115 | # ------------------------------------------------------------------------------ |
| 116 | |
| 117 | #Method void close() |
| 118 | #In incomplete |
| 119 | #Line # incomplete ## |
| 120 | |
| 121 | Close this SkFILEStream. |
| 122 | |
| 123 | #Example |
| 124 | // incomplete |
| 125 | ## |
| 126 | |
| 127 | #SeeAlso incomplete |
| 128 | |
| 129 | #Method ## |
| 130 | |
| 131 | # ------------------------------------------------------------------------------ |
| 132 | |
| 133 | #Method size_t read(void* buffer, size_t size) override |
| 134 | #In incomplete |
| 135 | #Line # incomplete ## |
| 136 | |
| 137 | #Param buffer incomplete ## |
| 138 | #Param size incomplete ## |
| 139 | |
| 140 | #Return incomplete ## |
| 141 | |
| 142 | #Example |
| 143 | // incomplete |
| 144 | ## |
| 145 | |
| 146 | #SeeAlso incomplete |
| 147 | |
| 148 | #Method ## |
| 149 | |
| 150 | # ------------------------------------------------------------------------------ |
| 151 | |
| 152 | #Method bool isAtEnd() const override |
| 153 | #In incomplete |
| 154 | #Line # incomplete ## |
| 155 | |
| 156 | #Return incomplete ## |
| 157 | |
| 158 | #Example |
| 159 | // incomplete |
| 160 | ## |
| 161 | |
| 162 | #SeeAlso incomplete |
| 163 | |
| 164 | #Method ## |
| 165 | |
| 166 | # ------------------------------------------------------------------------------ |
| 167 | |
| 168 | #Method bool rewind() override |
| 169 | #In incomplete |
| 170 | #Line # incomplete ## |
| 171 | |
| 172 | #Return incomplete ## |
| 173 | |
| 174 | #Example |
| 175 | // incomplete |
| 176 | ## |
| 177 | |
| 178 | #SeeAlso incomplete |
| 179 | |
| 180 | #Method ## |
| 181 | |
| 182 | # ------------------------------------------------------------------------------ |
| 183 | |
| 184 | #Method std::unique_ptr<SkStreamAsset> duplicate() const |
| 185 | #In incomplete |
| 186 | #Line # incomplete ## |
| 187 | |
| 188 | #Return incomplete ## |
| 189 | |
| 190 | #Example |
| 191 | // incomplete |
| 192 | ## |
| 193 | |
| 194 | #SeeAlso incomplete |
| 195 | |
| 196 | #Method ## |
| 197 | |
| 198 | # ------------------------------------------------------------------------------ |
| 199 | |
| 200 | #Method size_t getPosition() const override |
| 201 | #In incomplete |
| 202 | #Line # incomplete ## |
| 203 | |
| 204 | #Return incomplete ## |
| 205 | |
| 206 | #Example |
| 207 | // incomplete |
| 208 | ## |
| 209 | |
| 210 | #SeeAlso incomplete |
| 211 | |
| 212 | #Method ## |
| 213 | |
| 214 | # ------------------------------------------------------------------------------ |
| 215 | |
| 216 | #Method bool seek(size_t position) override |
| 217 | #In incomplete |
| 218 | #Line # incomplete ## |
| 219 | |
| 220 | #Param position incomplete ## |
| 221 | |
| 222 | #Return incomplete ## |
| 223 | |
| 224 | #Example |
| 225 | // incomplete |
| 226 | ## |
| 227 | |
| 228 | #SeeAlso incomplete |
| 229 | |
| 230 | #Method ## |
| 231 | |
| 232 | # ------------------------------------------------------------------------------ |
| 233 | |
| 234 | #Method bool move(long offset) override |
| 235 | #In incomplete |
| 236 | #Line # incomplete ## |
| 237 | |
| 238 | #Param offset incomplete ## |
| 239 | |
| 240 | #Return incomplete ## |
| 241 | |
| 242 | #Example |
| 243 | // incomplete |
| 244 | ## |
| 245 | |
| 246 | #SeeAlso incomplete |
| 247 | |
| 248 | #Method ## |
| 249 | |
| 250 | # ------------------------------------------------------------------------------ |
| 251 | |
| 252 | #Method std::unique_ptr<SkStreamAsset> fork() const |
| 253 | #In incomplete |
| 254 | #Line # incomplete ## |
| 255 | |
| 256 | #Return incomplete ## |
| 257 | |
| 258 | #Example |
| 259 | // incomplete |
| 260 | ## |
| 261 | |
| 262 | #SeeAlso incomplete |
| 263 | |
| 264 | #Method ## |
| 265 | |
| 266 | # ------------------------------------------------------------------------------ |
| 267 | |
| 268 | #Method size_t getLength() const override |
| 269 | #In incomplete |
| 270 | #Line # incomplete ## |
| 271 | |
| 272 | #Return incomplete ## |
| 273 | |
| 274 | #Example |
| 275 | // incomplete |
| 276 | ## |
| 277 | |
| 278 | #SeeAlso incomplete |
| 279 | |
| 280 | #Method ## |
| 281 | |
| 282 | #Class SkFILEStream ## |
| 283 | |
| 284 | #Topic FILEStream ## |