| Oracle9i Supplied PL/SQL Packages and Types Reference Release 1 (9.0.1) Part Number A89852-02 |
|
UTL_RAW , 13 of 22
This function overlays the specified portion of target RAW with overlay RAW, starting from byte position pos of target and proceeding for len bytes.
If overlay has less than len bytes, then it is extended to len bytes using the pad byte. If overlay exceeds len bytes, then the extra bytes in overlay are ignored. If len bytes beginning at position pos of target exceeds the length of target, then target is extended to contain the entire length of overlay.
len, if specified, must be greater than, or equal to, 0. pos, if specified, must be greater than, or equal to, 1. If pos exceeds the length of target, then target is padded with pad bytes to position pos, and target is further extended with overlay bytes.
UTL_RAW.OVERLAY ( overlay_str IN RAW, target IN RAW, pos IN BINARY_INTEGER DEFAULT 1, len IN BINARY_INTEGER DEFAULT NULL, pad IN RAW DEFAULT NULL) RETURN RAW;
pragma restrict_references(overlay, WNDS, RNDS, WNPS, RNPS);
| Optional Parameter | Description |
|---|---|
pos |
1 |
len |
To the length of overlay |
pad |
x'00' |
| Return | Description |
|---|---|
RAW |
The target |
| Error | Description |
|---|---|
VALUE_ERROR |
- Overlay is - Target is missing or undefined
- Length of target exceeds maximum length of a
- |
|
|
![]() Copyright © 1996-2001, Oracle Corporation. All Rights Reserved. |
|