Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: flutter/engine
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 427ceaf089bd
Choose a base ref
...
head repository: flutter/engine
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3a1b12a2fa09
Choose a head ref
  • 1 commit
  • 22 files changed
  • 1 contributor

Commits on Jul 14, 2023

  1. Use utf8.encode() instead of longer const Utf8Encoder.convert() (#43675)

    The change in [0] has propagated now everywhere, so we can use 
    `utf8.encode()` instead of the longer `const Utf8Encoder.convert()`.
    
    Also it cleans up code like
    
    ```
      Uint8List bytes;
      bytes.buffer.asByteData();
    ```
    
    as that is not guaranteed to be correct, the correct version would be
    
    ```
      Uint8List bytes;
      bytes.buffer.asByteData(bytes.offsetInBytes, bytes.length);
    ```
    
    a shorter hand for that is:
    
    ```
      Uint8List bytes;
      ByteData.sublistView(bytes);
    ```
    
    [0] dart-lang/sdk#52801
    mkustermann authored Jul 14, 2023
    Configuration menu
    Copy the full SHA
    3a1b12a View commit details
    Browse the repository at this point in the history
Loading