Home | History | Annotate | Download | only in docs
      1 #Topic DynamicMemoryWStream
      2 #Alias DynamicMemoryWStream_Reference ##
      3 
      4 #Class SkDynamicMemoryWStream
      5 
      6 #Code
      7 #Populate
      8 ##
      9 
     10 # ------------------------------------------------------------------------------
     11 
     12 #Method SkDynamicMemoryWStream()
     13 #In Constructors
     14 #Line # incomplete ##
     15 
     16 #Return incomplete ##
     17 
     18 #Example
     19 // incomplete
     20 ##
     21 
     22 #SeeAlso incomplete
     23 
     24 #Method ##
     25 
     26 # ------------------------------------------------------------------------------
     27 
     28 #Method ~SkDynamicMemoryWStream() override
     29 #In Constructors
     30 #Line # incomplete ##
     31 
     32 #Example
     33 // incomplete
     34 ##
     35 
     36 #SeeAlso incomplete
     37 
     38 #Method ##
     39 
     40 # ------------------------------------------------------------------------------
     41 
     42 #Method bool write(const void* buffer, size_t size) override
     43 #In incomplete
     44 #Line # incomplete ##
     45 
     46 #Param buffer  incomplete ##
     47 #Param size  incomplete ##
     48 
     49 #Return incomplete ##
     50 
     51 #Example
     52 // incomplete
     53 ##
     54 
     55 #SeeAlso incomplete
     56 
     57 #Method ##
     58 
     59 # ------------------------------------------------------------------------------
     60 
     61 #Method size_t bytesWritten() const override
     62 #In incomplete
     63 #Line # incomplete ##
     64 
     65 #Return incomplete ##
     66 
     67 #Example
     68 // incomplete
     69 ##
     70 
     71 #SeeAlso incomplete
     72 
     73 #Method ##
     74 
     75 # ------------------------------------------------------------------------------
     76 
     77 #Method bool read(void* buffer, size_t offset, size_t size)
     78 #In incomplete
     79 #Line # incomplete ##
     80 
     81 #Param buffer  incomplete ##
     82 #Param offset  incomplete ##
     83 #Param size  incomplete ##
     84 
     85 #Return incomplete ##
     86 
     87 #Example
     88 // incomplete
     89 ##
     90 
     91 #SeeAlso incomplete
     92 
     93 #Method ##
     94 
     95 # ------------------------------------------------------------------------------
     96 
     97 #Method void copyTo(void* dst) const
     98 #In incomplete
     99 #Line # incomplete ##
    100 
    101 Copies bytes read to dst.
    102 
    103 #Param dst  incomplete ##
    104 
    105 #Example
    106 // incomplete
    107 ##
    108 
    109 #SeeAlso incomplete
    110 
    111 #Method ##
    112 
    113 # ------------------------------------------------------------------------------
    114 
    115 #Method bool writeToStream(SkWStream* dst) const
    116 #In incomplete
    117 #Line # incomplete ##
    118 
    119 #Param dst  incomplete ##
    120 
    121 #Return incomplete ##
    122 
    123 #Example
    124 // incomplete
    125 ##
    126 
    127 #SeeAlso incomplete
    128 
    129 #Method ##
    130 
    131 # ------------------------------------------------------------------------------
    132 
    133 #Method void copyToAndReset(void* dst)
    134 #In incomplete
    135 #Line # incomplete ##
    136 
    137 Copies bytes read to dst, and resets stream to start.
    138 Internally, frees memory as it is copied, reducing total memory
    139 use on large streams.
    140 
    141 #Param dst  incomplete ##
    142 
    143 #Example
    144 // incomplete
    145 ##
    146 
    147 #SeeAlso incomplete
    148 
    149 #Method ##
    150 
    151 # ------------------------------------------------------------------------------
    152 
    153 #Method bool writeToAndReset(SkWStream* dst)
    154 #In incomplete
    155 #Line # incomplete ##
    156 
    157 Writes bytes read to dst, and resets stream to start.
    158 Internally, frees memory as it is copied, reducing total memory
    159 use on large streams.
    160 
    161 Stream is reset: data memory is released and stream length is set to zero;
    162 regardless of whether the write was successful.
    163 
    164 #Param dst  incomplete ##
    165 
    166 #Return incomplete ##
    167 
    168 #Example
    169 // incomplete
    170 ##
    171 
    172 #SeeAlso incomplete
    173 
    174 #Method ##
    175 
    176 # ------------------------------------------------------------------------------
    177 
    178 #Method sk_sp<SkData> detachAsData()
    179 #In incomplete
    180 #Line # incomplete ##
    181 
    182 Return the contents as SkData, and then reset the stream.
    183 
    184 #Return incomplete ##
    185 
    186 #Example
    187 // incomplete
    188 ##
    189 
    190 #SeeAlso incomplete
    191 
    192 #Method ##
    193 
    194 # ------------------------------------------------------------------------------
    195 
    196 #Method std::unique_ptr<SkStreamAsset> detachAsStream()
    197 #In incomplete
    198 #Line # incomplete ##
    199 
    200 Reset, returning a reader stream with the current content.
    201 
    202 #Return incomplete ##
    203 
    204 #Example
    205 // incomplete
    206 ##
    207 
    208 #SeeAlso incomplete
    209 
    210 #Method ##
    211 
    212 # ------------------------------------------------------------------------------
    213 
    214 #Method void reset()
    215 #In incomplete
    216 #Line # incomplete ##
    217 
    218 Reset the stream to its original, empty, state.
    219 
    220 #Example
    221 // incomplete
    222 ##
    223 
    224 #SeeAlso incomplete
    225 
    226 #Method ##
    227 
    228 # ------------------------------------------------------------------------------
    229 
    230 #Method void padToAlign4()
    231 #In incomplete
    232 #Line # incomplete ##
    233 
    234 #Example
    235 // incomplete
    236 ##
    237 
    238 #SeeAlso incomplete
    239 
    240 #Method ##
    241 
    242 #Class SkDynamicMemoryWStream ##
    243 
    244 #Topic DynamicMemoryWStream ##
    245