Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ClassBytesSupplier (0.22 sec)

  1. build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/support/ClassBytesRepository.kt

    package org.gradle.kotlin.dsl.internal.sharedruntime.support
    
    import java.io.Closeable
    import java.io.File
    import java.util.jar.JarFile
    
    
    private
    typealias ClassBytesSupplier = () -> ByteArray
    
    
    private
    typealias ClassBytesIndex = (String) -> ClassBytesSupplier?
    
    
    /**
     * Repository providing access to class bytes by Kotlin source names.
     *
     * Follows the one directory per package name segment convention.
    Plain Text
    - Registered: Wed Feb 28 11:36:09 GMT 2024
    - Last Modified: Sat Sep 30 16:17:27 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  2. build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/codegen/ApiTypeProvider.kt

            ApiType(asmLevel, incubatingAnnotationTypeDescriptor, sourceName, classNodeFor(classBytes), context)
        }
    
        private
        fun classNodeFor(classBytesSupplier: () -> ByteArray): () -> ApiTypeClassNode = {
            ApiTypeClassNode(asmLevel).also {
                ClassReader(classBytesSupplier()).accept(it, SKIP_CODE or SKIP_FRAMES)
            }
        }
    
        private
        fun <T> open(action: () -> T): T =
    Plain Text
    - Registered: Wed Feb 28 11:36:09 GMT 2024
    - Last Modified: Tue Feb 06 19:56:10 GMT 2024
    - 20.8K bytes
    - Viewed (0)
Back to top