src/Pure/General/bytes.scala
changeset 75579 3362b6a5d697
parent 75393 87ebf5a50283
child 75586 b2b097624e4c
equal deleted inserted replaced
75578:d3ba143a7ab8 75579:3362b6a5d697
    55 
    55 
    56   object Encode_Base64 extends Scala.Fun("encode_base64") {
    56   object Encode_Base64 extends Scala.Fun("encode_base64") {
    57     val here = Scala_Project.here
    57     val here = Scala_Project.here
    58     def invoke(args: List[Bytes]): List[Bytes] =
    58     def invoke(args: List[Bytes]): List[Bytes] =
    59       List(Bytes(Library.the_single(args).base64))
    59       List(Bytes(Library.the_single(args).base64))
       
    60   }
       
    61 
       
    62 
       
    63   /* XZ compression */
       
    64 
       
    65   object Compress extends Scala.Fun("compress") {
       
    66     val here = Scala_Project.here
       
    67     def invoke(args: List[Bytes]): List[Bytes] =
       
    68       List(Library.the_single(args).compress())
       
    69   }
       
    70 
       
    71   object Uncompress extends Scala.Fun("uncompress") {
       
    72     val here = Scala_Project.here
       
    73     def invoke(args: List[Bytes]): List[Bytes] =
       
    74       List(Library.the_single(args).uncompress())
    60   }
    75   }
    61 
    76 
    62 
    77 
    63   /* read */
    78   /* read */
    64 
    79