Skip to content

Commit

Permalink
Dart format
Browse files Browse the repository at this point in the history
  • Loading branch information
sethloco committed Jun 20, 2024
1 parent 22f1b6c commit e19a3bb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
3 changes: 1 addition & 2 deletions lib/src/framework/dart/buffers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ class DartCodecBuffer extends CodecBuffer<DartHeapPointer> {

/// Constructs a [DartCodecBuffer] that is backed by a [Uint8List] with the
/// provided [length].
DartCodecBuffer(super.length)
: _list = Uint8List(length);
DartCodecBuffer(super.length) : _list = Uint8List(length);

/// Updates the read offset of the wrapped pointer and returns it.
@override
Expand Down
3 changes: 1 addition & 2 deletions lib/src/framework/native/buffers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ class NativeCodecBuffer extends CodecBuffer<Pointer<Uint8>> {
bool _released = false;

/// Constructs a buffer that allocates [length] bytes from the native OS-heap.
NativeCodecBuffer(super.length)
: _bytes = malloc<Uint8>(length);
NativeCodecBuffer(super.length) : _bytes = malloc<Uint8>(length);

/// Return the native byte pointer to the [_bytes] base address.
@override
Expand Down
4 changes: 1 addition & 3 deletions lib/src/zstd/ffi/compress_filter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ class ZstdCompressFilter extends NativeCodecFilterBase {

/// Construct the [ZstdCompressFilter] with the optional parameters.
ZstdCompressFilter(
{int? level,
super.inputBufferLength,
super.outputBufferLength}) {
{int? level, super.inputBufferLength, super.outputBufferLength}) {
if (level != null) this.level = level;
}

Expand Down
4 changes: 1 addition & 3 deletions lib/src/zstd/stubs/compress_filter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ import '../../../framework.dart';
class ZstdCompressFilter extends DartCodecFilterBase {
/// Construct the [ZstdCompressFilter] with the optional parameters.
ZstdCompressFilter(
{int? level,
super.inputBufferLength,
super.outputBufferLength});
{int? level, super.inputBufferLength, super.outputBufferLength});

/// Raise an [UnsupportedError] for missing codec filter.
@override
Expand Down

0 comments on commit e19a3bb

Please sign in to comment.