/ohos5.0/commonlibrary/ets_utils/js_api_module/buffer/src/ |
H A D | js_buffer.ts | 703 switch (byteLength) { 723 switch (byteLength) { 743 switch (byteLength) { 763 switch (byteLength) { 797 switch (byteLength) { 817 switch (byteLength) { 837 switch (byteLength) { 2129 let size = byteLength(value, enc); 2176 return string.byteLength; 2244 byteLength: (str: string) => number; [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/src/image/ |
H A D | image_loader_manager.cpp | 93 const uint64_t byteLength = 12u; in LoadImage() local 96 unique_ptr<uint8_t[]> buffer = make_unique<uint8_t[]>(static_cast<size_t>(byteLength)); in LoadImage() 97 const uint64_t read = file.Read(buffer.get(), byteLength); in LoadImage() 98 if (read != byteLength) { in LoadImage() 105 …ader.instance->CanLoad(array_view<const uint8_t>(buffer.get(), static_cast<size_t>(byteLength)))) { in LoadImage() 148 const uint64_t byteLength = 12u; in LoadAnimatedImage() local 151 unique_ptr<uint8_t[]> buffer = make_unique<uint8_t[]>(static_cast<size_t>(byteLength)); in LoadAnimatedImage() 152 const uint64_t read = file.Read(buffer.get(), byteLength); in LoadAnimatedImage() 153 if (read != byteLength) { in LoadAnimatedImage() 159 …ader.instance->CanLoad(array_view<const uint8_t>(buffer.get(), static_cast<size_t>(byteLength)))) { in LoadAnimatedImage()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/text/ |
H A D | text_blob.cpp | 29 std::shared_ptr<TextBlob> TextBlob::MakeFromText(const void* text, size_t byteLength, in MakeFromText() argument 32 return StaticFactory::MakeFromText(text, byteLength, font, encoding); in MakeFromText() 35 std::shared_ptr<TextBlob> TextBlob::MakeFromPosText(const void* text, size_t byteLength, in MakeFromPosText() argument 38 return StaticFactory::MakeFromPosText(text, byteLength, pos, font, encoding); in MakeFromPosText() 49 std::shared_ptr<TextBlob> TextBlob::MakeFromRSXform(const void* text, size_t byteLength, in MakeFromRSXform() argument 52 return StaticFactory::MakeFromRSXform(text, byteLength, xform, font, encoding); in MakeFromRSXform()
|
H A D | font.cpp | 173 int Font::TextToGlyphs(const void* text, size_t byteLength, TextEncoding encoding, in TextToGlyphs() argument 176 return fontImpl_->TextToGlyphs(text, byteLength, encoding, glyphs, maxGlyphCount); in TextToGlyphs() 179 scalar Font::MeasureText(const void* text, size_t byteLength, TextEncoding encoding, Rect* bounds) … in MeasureText() argument 181 return fontImpl_->MeasureText(text, byteLength, encoding, bounds); in MeasureText() 226 int Font::CountText(const void* text, size_t byteLength, TextEncoding encoding) const in CountText() argument 228 return fontImpl_->CountText(text, byteLength, encoding); in CountText()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/loader/ |
H A D | shader_state_loader.cpp | 55 const uint64_t byteLength = file->GetLength(); in Load() local 58 raw.resize(static_cast<size_t>(byteLength)); in Load() 60 if (file->Read(raw.data(), byteLength) != byteLength) { in Load()
|
H A D | vertex_input_declaration_loader.cpp | 158 const uint64_t byteLength = file->GetLength(); in Load() local 161 raw.resize(static_cast<size_t>(byteLength)); in Load() 163 if (file->Read(raw.data(), byteLength) != byteLength) { in Load()
|
/ohos5.0/foundation/ai/intelligent_voice_framework/frameworks/js/napi/ |
H A D | intell_voice_napi_util.cpp | 152 size_t byteLength = 0; in GetValue() local 160 napi_status status = napi_get_arraybuffer_info(env, jsValue, &buf, &byteLength); in GetValue() 166 if (buf == nullptr || byteLength == 0) { in GetValue() 167 INTELL_VOICE_LOG_ERROR("failed to get arraybuf length %zu", byteLength); in GetValue() 171 value.resize(byteLength); in GetValue() 172 std::copy(static_cast<uint8_t *>(buf), static_cast<uint8_t *>(buf) + byteLength, &value[0]); in GetValue()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/ |
H A D | skia_font.cpp | 236 int SkiaFont::TextToGlyphs(const void* text, size_t byteLength, TextEncoding encoding, in TextToGlyphs() argument 240 return skFont_.textToGlyphs(text, byteLength, skEncoding, glyphs, maxGlyphCount); in TextToGlyphs() 243 scalar SkiaFont::MeasureText(const void* text, size_t byteLength, TextEncoding encoding, Rect* boun… in MeasureText() argument 248 scalar width = skFont_.measureText(text, byteLength, skEncoding, &rect); in MeasureText() 255 return skFont_.measureText(text, byteLength, skEncoding); in MeasureText() 259 int SkiaFont::CountText(const void* text, size_t byteLength, TextEncoding encoding) const in CountText() argument 262 return skFont_.countText(text, byteLength, skEncoding); in CountText()
|
H A D | skia_text_blob.cpp | 47 std::shared_ptr<TextBlob> SkiaTextBlob::MakeFromText(const void* text, size_t byteLength, in MakeFromText() argument 56 …sk_sp<SkTextBlob> skTextBlob = SkTextBlob::MakeFromText(text, byteLength, skiaFont->GetFont(), skE… in MakeFromText() 65 std::shared_ptr<TextBlob> SkiaTextBlob::MakeFromPosText(const void* text, size_t byteLength, in MakeFromPosText() argument 76 const int count = skFont.countText(text, byteLength, skEncoding); in MakeFromPosText() 81 …sk_sp<SkTextBlob> skTextBlob = SkTextBlob::MakeFromPosText(text, byteLength, skPts, skFont, skEnco… in MakeFromPosText() 90 std::shared_ptr<TextBlob> SkiaTextBlob::MakeFromRSXform(const void* text, size_t byteLength, in MakeFromRSXform() argument 104 …SkTextBlob::MakeFromRSXform(text, byteLength, xform ? &skXform : nullptr, skiaFont->GetFont(), skE… in MakeFromRSXform()
|
H A D | skia_static_factory.cpp | 33 std::shared_ptr<TextBlob> SkiaStaticFactory::MakeFromText(const void* text, size_t byteLength, in MakeFromText() argument 36 return SkiaTextBlob::MakeFromText(text, byteLength, font, encoding); in MakeFromText() 39 std::shared_ptr<TextBlob> SkiaStaticFactory::MakeFromPosText(const void* text, size_t byteLength, in MakeFromPosText() argument 42 return SkiaTextBlob::MakeFromPosText(text, byteLength, pos, font, encoding); in MakeFromPosText() 45 std::shared_ptr<TextBlob> SkiaStaticFactory::MakeFromRSXform(const void* text, size_t byteLength, in MakeFromRSXform() argument 48 return SkiaTextBlob::MakeFromRSXform(text, byteLength, xform, font, encoding); in MakeFromRSXform()
|
H A D | skia_text_blob.h | 42 static std::shared_ptr<TextBlob> MakeFromText(const void* text, size_t byteLength, 44 static std::shared_ptr<TextBlob> MakeFromPosText(const void* text, size_t byteLength, 46 static std::shared_ptr<TextBlob> MakeFromRSXform(const void* text, size_t byteLength,
|
H A D | skia_font.h | 74 int TextToGlyphs(const void* text, size_t byteLength, TextEncoding encoding, 77 …scalar MeasureText(const void* text, size_t byteLength, TextEncoding encoding, Rect* bounds) const… 78 int CountText(const void* text, size_t byteLength, TextEncoding encoding) const override;
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/ |
H A D | drawing_font.cpp | 202 int OH_Drawing_FontCountText(OH_Drawing_Font* cFont, const void* text, size_t byteLength, in OH_Drawing_FontCountText() argument 210 return font->CountText(text, byteLength, static_cast<TextEncoding>(encoding)); in OH_Drawing_FontCountText() 213 …_t OH_Drawing_FontTextToGlyphs(const OH_Drawing_Font* cFont, const void* text, uint32_t byteLength, in OH_Drawing_FontTextToGlyphs() argument 216 …if (cFont == nullptr || text == nullptr || glyphs == nullptr || byteLength == 0 || maxGlyphCount <… in OH_Drawing_FontTextToGlyphs() 220 return CastToFont(*cFont).TextToGlyphs(text, byteLength, in OH_Drawing_FontTextToGlyphs() 249 …rCode OH_Drawing_FontMeasureText(const OH_Drawing_Font* cFont, const void* text, size_t byteLength, in OH_Drawing_FontMeasureText() argument 252 if (cFont == nullptr || text == nullptr || byteLength == 0 || textWidth == nullptr) { in OH_Drawing_FontMeasureText() 256 *textWidth = CastToFont(*cFont).MeasureText(text, byteLength, in OH_Drawing_FontMeasureText()
|
H A D | drawing_text_blob.cpp | 68 OH_Drawing_TextBlob* OH_Drawing_TextBlobCreateFromText(const void* text, size_t byteLength, in OH_Drawing_TextBlobCreateFromText() argument 81 byteLength, font, static_cast<TextEncoding>(cTextEncoding)); in OH_Drawing_TextBlobCreateFromText() 90 OH_Drawing_TextBlob* OH_Drawing_TextBlobCreateFromPosText(const void* text, size_t byteLength, in OH_Drawing_TextBlobCreateFromPosText() argument 93 if (text == nullptr || cFont == nullptr || cPoints == nullptr || byteLength == 0) { in OH_Drawing_TextBlobCreateFromPosText() 102 const int count = font.CountText(text, byteLength, static_cast<TextEncoding>(cTextEncoding)); in OH_Drawing_TextBlobCreateFromPosText() 113 std::shared_ptr<TextBlob> textBlob = TextBlob::MakeFromPosText(text, byteLength, in OH_Drawing_TextBlobCreateFromPosText()
|
/ohos5.0/commonlibrary/ets_utils/js_util_module/util/test/ |
H A D | test_util.cpp | 1216 size_t byteLength = 3; variable 1258 size_t byteLength = 5; variable 1299 size_t byteLength = 0; variable 1326 size_t byteLength = 6; variable 1368 size_t byteLength = 6; variable 1410 size_t byteLength = 8; variable 1459 size_t byteLength = 8; variable 1508 size_t byteLength = 6; variable 1550 size_t byteLength = 8; variable 3001 byteLength = count; [all …]
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta3/ |
H A D | js-apidiff-compiler-and-runtime.md | 15 | ohos.buffer | Buffer | writeUIntLE(value: number, offset: number, byteLength: number): numbe… 16 | ohos.buffer | Buffer | writeUIntBE(value: number, offset: number, byteLength: number): numbe… 22 | ohos.buffer | Buffer | writeIntLE(value : number, offset: number, byteLength: number): numbe… 23 | ohos.buffer | Buffer | writeIntBE(value: number, offset: number, byteLength: number): number… 44 | ohos.buffer | Buffer | readUIntLE(offset: number, byteLength: number): number; … 45 | ohos.buffer | Buffer | readUIntBE(offset: number, byteLength: number): number; … 51 | ohos.buffer | Buffer | readIntLE(offset: number, byteLength: number): number; … 52 | ohos.buffer | Buffer | readIntBE(offset: number, byteLength: number): number; … 85 | ohos.buffer | buffer | function byteLength(string: string \| Buffer \| TypedArray \| DataVie…
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/ |
H A D | static_factory.cpp | 29 std::shared_ptr<TextBlob> StaticFactory::MakeFromText(const void* text, size_t byteLength, in MakeFromText() argument 34 return DDGRStaticFactory::MakeFromText(text, byteLength, font, encoding); in MakeFromText() 37 return EngineStaticFactory::MakeFromText(text, byteLength, font, encoding); in MakeFromText() 40 std::shared_ptr<TextBlob> StaticFactory::MakeFromPosText(const void* text, size_t byteLength, in MakeFromPosText() argument 45 return DDGRStaticFactory::MakeFromPosText(text, byteLength, pos, font, encoding); in MakeFromPosText() 48 return EngineStaticFactory::MakeFromPosText(text, byteLength, pos, font, encoding); in MakeFromPosText() 51 std::shared_ptr<TextBlob> StaticFactory::MakeFromRSXform(const void* text, size_t byteLength, in MakeFromRSXform() argument 56 return DDGRStaticFactory::MakeFromRSXform(text, byteLength, xform, font, encoding); in MakeFromRSXform() 59 return EngineStaticFactory::MakeFromRSXform(text, byteLength, xform, font, encoding); in MakeFromRSXform()
|
/ohos5.0/docs/en/release-notes/api-diff/v3.2-beta3/ |
H A D | js-apidiff-compiler-and-runtime.md | 15 | ohos.buffer | Buffer | writeUIntLE(value: number, offset: number, byteLength: number): numbe… 16 | ohos.buffer | Buffer | writeUIntBE(value: number, offset: number, byteLength: number): numbe… 22 | ohos.buffer | Buffer | writeIntLE(value : number, offset: number, byteLength: number): numbe… 23 | ohos.buffer | Buffer | writeIntBE(value: number, offset: number, byteLength: number): number… 44 | ohos.buffer | Buffer | readUIntLE(offset: number, byteLength: number): number; … 45 | ohos.buffer | Buffer | readUIntBE(offset: number, byteLength: number): number; … 51 | ohos.buffer | Buffer | readIntLE(offset: number, byteLength: number): number; … 52 | ohos.buffer | Buffer | readIntBE(offset: number, byteLength: number): number; … 85 | ohos.buffer | buffer | function byteLength(string: string \| Buffer \| TypedArray \| DataVie…
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/engine_adapter/ |
H A D | static_factory_test.cpp | 151 int byteLength = 5; variable 154 … TextBlob::MakeFromText(text, byteLength, font, static_cast<TextEncoding>(TextEncoding::UTF8)); 168 int byteLength = 5; variable 171 … TextBlob::MakeFromText(text, byteLength, font, static_cast<TextEncoding>(TextEncoding::UTF8));
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/src/image/loaders/ |
H A D | image_loader_libpng.cpp | 223 const uint64_t byteLength = file.GetLength(); in Load() local 225 if (byteLength > static_cast<uint64_t>(std::numeric_limits<int>::max())) { in Load() 230 unique_ptr<uint8_t[]> buffer = make_unique<uint8_t[]>(static_cast<size_t>(byteLength)); in Load() 231 const uint64_t read = file.Read(buffer.get(), byteLength); in Load() 232 if (read != byteLength) { in Load() 236 …NGImage::Load(array_view<const uint8_t>(buffer.get(), static_cast<size_t>(byteLength)), loadFlags); in Load()
|
H A D | image_loader_libjpeg.cpp | 248 const uint64_t byteLength = file.GetLength(); in Load() local 250 if (byteLength > static_cast<uint64_t>(std::numeric_limits<int>::max())) { in Load() 255 unique_ptr<uint8_t[]> buffer = make_unique<uint8_t[]>(static_cast<size_t>(byteLength)); in Load() 256 const uint64_t read = file.Read(buffer.get(), byteLength); in Load() 257 if (read != byteLength) { in Load() 261 …EGImage::Load(array_view<const uint8_t>(buffer.get(), static_cast<size_t>(byteLength)), loadFlags); in Load()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/include/ |
H A D | drawing_font.h | 210 int OH_Drawing_FontCountText(OH_Drawing_Font*, const void* text, size_t byteLength, 227 uint32_t OH_Drawing_FontTextToGlyphs(const OH_Drawing_Font*, const void* text, uint32_t byteLength, 277 …orCode OH_Drawing_FontMeasureText(const OH_Drawing_Font* font, const void* text, size_t byteLength,
|
/ohos5.0/docs/zh-cn/application-dev/performance/ |
H A D | thread_data_transfer.md | 44 …rSlice: ArrayBuffer = arrayBuffer.slice(arrayBuffer.byteLength / taskNum * i, arrayBuffer.byteLeng… 106 …rSlice: ArrayBuffer = arrayBuffer.slice(arrayBuffer.byteLength / taskNum * i, arrayBuffer.byteLeng… 157 …rSlice: ArrayBuffer = arrayBuffer.slice(arrayBuffer.byteLength / taskNum * i, arrayBuffer.byteLeng…
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/text/ |
H A D | font.h | 223 int TextToGlyphs(const void* text, size_t byteLength, TextEncoding encoding, 234 …scalar MeasureText(const void* text, size_t byteLength, TextEncoding encoding, Rect* bounds = null… 250 int CountText(const void* text, size_t byteLength, TextEncoding encoding) const;
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/impl_interface/ |
H A D | font_impl.h | 68 virtual int TextToGlyphs(const void* text, size_t byteLength, TextEncoding encoding, 71 virtual scalar MeasureText(const void* text, size_t byteLength, TextEncoding encoding, 73 virtual int CountText(const void* text, size_t byteLength, TextEncoding encoding) const = 0;
|