Move constants out of Console.kt
This commit is contained in:
@@ -5,21 +5,6 @@ import java.io.InputStream
|
|||||||
import java.io.InputStreamReader
|
import java.io.InputStreamReader
|
||||||
import java.io.BufferedReader
|
import java.io.BufferedReader
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the default buffer size when working with buffered streams.
|
|
||||||
*/
|
|
||||||
public val defaultBufferSize: Int = 64 * 1024
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the default block size for forEachBlock().
|
|
||||||
*/
|
|
||||||
public val defaultBlockSize: Int = 4096
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the minimum block size for forEachBlock().
|
|
||||||
*/
|
|
||||||
public val minimumBlockSize: Int = 512
|
|
||||||
|
|
||||||
/** Prints the given message to the standard output stream. */
|
/** Prints the given message to the standard output stream. */
|
||||||
public fun print(message: Any?) {
|
public fun print(message: Any?) {
|
||||||
System.out.print(message)
|
System.out.print(message)
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
@file:JvmVersion
|
||||||
|
package kotlin.io
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the default buffer size when working with buffered streams.
|
||||||
|
*/
|
||||||
|
public val defaultBufferSize: Int = 64 * 1024
|
||||||
|
/**
|
||||||
|
* Returns the default block size for forEachBlock().
|
||||||
|
*/
|
||||||
|
public val defaultBlockSize: Int = 4096
|
||||||
|
/**
|
||||||
|
* Returns the minimum block size for forEachBlock().
|
||||||
|
*/
|
||||||
|
public val minimumBlockSize: Int = 512
|
||||||
Reference in New Issue
Block a user