library/src/main/java/kwasm/runtime/memory/ByteBufferMemory.kt
File ByteBufferMemory.kt
has 361 lines of code (exceeds 250 allowed). Consider refactoring. Wontfix
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
Class ByteBufferMemory
has 29 methods (exceeds 20 allowed). Consider refactoring. Wontfix
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())