]>
git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/Compress.java
4 This class is to call CompressDll.dll to compress section.
6 Copyright (c) 2006, Intel Corporation
7 All rights reserved. This program and the accompanying materials
8 are licensed and made available under the terms and conditions of the BSD License
9 which accompanies this distribution. The full text of the license may be found at
10 http://opensource.org/licenses/bsd-license.php
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
17 package org
.tianocore
.framework
.tasks
;
23 This class is to call CompressDll.dll to compress section.
26 public class Compress
{
34 dllPath
= GenFfsFileTask
.path
;
45 This function is to call the compressDll.dll to compress the contents in
48 @param inputBuffer The input buffer.
49 @param size The size of buffer in byte.
50 @param dllPath The compressDll.dll path.
51 @return The buffer contained the comrpessed input.
53 public native byte[] CallCompress (byte[] inputBuffer
, int size
, String dllPath
);
58 This function is to initialize the class member and call the compress
61 @param inBuffer The input buffer.
62 @param size The size of buffer in byte.
64 public Compress (byte[] inBuffer
, int size
){
65 this.inputBuffer
= inBuffer
;
67 String path
= GenFfsFileTask
.path
;
70 // Call Compress function.
72 this.outputBuffer
= CallCompress (