jasonwyatt/KWasm

View on GitHub
library/src/main/java/kwasm/runtime/memory/ByteBufferMemory.kt

Summary

Maintainability
A
0 mins
Test Coverage

File ByteBufferMemory.kt has 361 lines of code (exceeds 250 allowed). Consider refactoring.
Wontfix

/*
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
Severity: Minor
Found in library/src/main/java/kwasm/runtime/memory/ByteBufferMemory.kt - About 4 hrs to fix

    Class ByteBufferMemory has 29 methods (exceeds 20 allowed). Consider refactoring.
    Wontfix

    @Suppress("EXPERIMENTAL_API_USAGE", "MemberVisibilityCanBePrivate")
    internal class ByteBufferMemory(
        internal val maximumPages: Int = 10, // 64 Megabytes
        initialData: ByteArray = ByteArray(0),
        initialPages: Int = maxOf(1, ceil(initialData.size / PAGE_SIZE.toDouble()).toInt())
    Severity: Minor
    Found in library/src/main/java/kwasm/runtime/memory/ByteBufferMemory.kt - About 3 hrs to fix

      There are no issues that match your filters.

      Category
      Status