Namespace: OpenEdge.Core
Class
MemptrInputStream
Parent classes:
Progress.IO.InputStream

Inherits: Progress.IO.InputStream

/* *************************************************************************************************************************
Copyright (c) 2019 by Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.
File:MemptrInputStream
Description:An InputStream implementation that holds data in-memory.
Author(s):pjudge
Created:2019-03-27
Notes:* This should be replaced in 12.0.0+ with the Progress.IO.MemoryInputStream, for performance reasons
/* The current/last-read byte in the stream




Method Summary
Options Name Purpose
Close ()
INT64 Read (character, character)
INT64 Read (character, longchar)
INT64 Read (memptr, int64, int64) /** ABSTRACT INT64 Read(INPUT pmData AS MEMPTR, INPUT offset AS INT64, INPUT len AS INT64). Description: When overridden in a derived class, reads len bytes of data from the current input stream into a specified MEMPTR variable starting at offset offset and returns number of bytes read. */
INT64 SkipBytes (int64) /* Skips over and discards n btyes from the current input stream. @param int64 The number of bytes to skip. + skips forward (toward Data:Size); - skips toward 1. @return int64 Returns number of bytes skipped. Returns 0, if we already at the end of the stream. */

Constructor Summary
Options Name Purpose
MemptrInputStream () /* Default constructor */
MemptrInputStream (Memptr)
MemptrInputStream (memptr)

Property Summary
Options Name Purpose
OpenEdge.Core.Memptr Data
INT64 Position


Method Detail
Top

Close ()

Top

INT64 Read (character, character)

Parameters:
pDelim CHARACTER
pTarget CHARACTER
Returns INT64
Top

INT64 Read (character, longchar)

Parameters:
pDelim CHARACTER
pTarget LONGCHAR
Returns INT64
Top

INT64 Read (memptr, int64, int64)

Purpose: ABSTRACT INT64 Read(INPUT pmData AS MEMPTR, INPUT offset AS INT64, INPUT len AS INT64).
Description:
When overridden in a derived class, reads len bytes of data from the current input
stream into a specified MEMPTR variable starting at offset offset and returns number
of bytes read.
Parameters:
pTarget OpenEdge.Core.Memptr
pOffset INT64
pLength INT64
Returns INT64
Top

INT64 SkipBytes (int64)

/* Skips over and discards n btyes from the current input stream.
Parameters:
pSkip INT64
Returns INT64
int64 Returns number of bytes skipped. Returns 0, if we already at the end of the stream.


Constructor Detail
Top

MemptrInputStream ()

/* Default constructor
Top

MemptrInputStream (Memptr)

Parameters:
pData OpenEdge.Core.Memptr
Top

MemptrInputStream (memptr)

Parameters:
pData OpenEdge.Core.Memptr


Property Detail
Top

OpenEdge.Core.Memptr Data

Returns OpenEdge.Core.Memptr
Top

INT64 Position

Returns INT64


Copyright © 2022 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 11.7.15