mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +01:00
Split the wasm stream for reused in generation data section stream
This commit is contained in:
parent
7a854ed786
commit
2ec9600d32
@ -264,17 +264,4 @@ class WasmOutputStream extends LittleEndianOutputStream {
|
|||||||
writeVaruint32( size );
|
writeVaruint32( size );
|
||||||
baos.writeTo( this );
|
baos.writeTo( this );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Write the data of this stream to the output. Work only for in memory stream.
|
|
||||||
*
|
|
||||||
* @param output
|
|
||||||
* the target
|
|
||||||
* @throws IOException
|
|
||||||
* if any I/O error occur
|
|
||||||
*/
|
|
||||||
void writeTo( OutputStream output ) throws IOException {
|
|
||||||
ByteArrayOutputStream baos = (ByteArrayOutputStream)out;
|
|
||||||
baos.writeTo( output );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -79,6 +79,19 @@ public class LittleEndianOutputStream extends FilterOutputStream {
|
|||||||
write( value >>> 24 );
|
write( value >>> 24 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Write the data of this stream to the output. Work only for in memory stream.
|
||||||
|
*
|
||||||
|
* @param output
|
||||||
|
* the target
|
||||||
|
* @throws IOException
|
||||||
|
* if any I/O error occur
|
||||||
|
*/
|
||||||
|
public void writeTo( OutputStream output ) throws IOException {
|
||||||
|
ByteArrayOutputStream baos = (ByteArrayOutputStream)out;
|
||||||
|
baos.writeTo( output );
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The count of bytes in the stream.
|
* The count of bytes in the stream.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user