theKernel 10.0
Loading...
Searching...
No Matches
MkBufferStreamC_Write_TCL_API

MkBufferStreamC - various functions to write into a MkBufferStreamSMore...

+ Collaboration diagram for MkBufferStreamC_Write_TCL_API:

Functions

static OT_ProcRet tclmkkernel_MkBufferStreamC_WriteBFL (MkBufferStreamC_ARGS)
  Tcl: $bus WriteBFL bfl:MkBufferListC C-API
write a MkBufferListC into the MkBufferStreamC
 
static OT_ProcRet tclmkkernel_MkBufferStreamC_WriteBIN (MkBufferStreamC_ARGS)
  Tcl: doc_mk_tcl_BufferStreamWriteBIN C-API
write a PRIMITIVE TYPE into the MkBufferStreamC
 
static OT_ProcRet tclmkkernel_MkBufferStreamC_WriteBOL (MkBufferStreamC_ARGS)
  Tcl: doc_mk_tcl_BufferStreamWriteBOL C-API
write a PRIMITIVE TYPE into the MkBufferStreamC
 
static OT_ProcRet tclmkkernel_MkBufferStreamC_WriteBUF (MkBufferStreamC_ARGS)
  Tcl: $bus WriteBUF val:MkBufferC C-API
write a PRIMITIVE TYPE into the MkBufferStreamC
 
static OT_ProcRet tclmkkernel_MkBufferStreamC_WriteBUS_FLAT (MkBufferStreamC_ARGS)
  Tcl: $bus WriteBUS_FLAT add:MkBufferStreamC C-API
write a MkBufferStreamC into the MkBufferStreamC
 
static OT_ProcRet tclmkkernel_MkBufferStreamC_WriteDBL (MkBufferStreamC_ARGS)
  Tcl: doc_mk_tcl_BufferStreamWriteDBL C-API
write a PRIMITIVE TYPE into the MkBufferStreamC
 
static OT_ProcRet tclmkkernel_MkBufferStreamC_WriteFLT (MkBufferStreamC_ARGS)
  Tcl: doc_mk_tcl_BufferStreamWriteFLT C-API
write a PRIMITIVE TYPE into the MkBufferStreamC
 
static OT_ProcRet tclmkkernel_MkBufferStreamC_WriteHDL (MkBufferStreamC_ARGS)
  Tcl: $bus WriteHDL val:int32 C-API
write the handle into the MkBufferStreamC
 
static OT_ProcRet tclmkkernel_MkBufferStreamC_WriteI32 (MkBufferStreamC_ARGS)
  Tcl: doc_mk_tcl_BufferStreamWriteI32 C-API
write a PRIMITIVE TYPE into the MkBufferStreamC
 
static OT_ProcRet tclmkkernel_MkBufferStreamC_WriteI64 (MkBufferStreamC_ARGS)
  Tcl: doc_mk_tcl_BufferStreamWriteI64 C-API
write a PRIMITIVE TYPE into the MkBufferStreamC
 
static OT_ProcRet tclmkkernel_MkBufferStreamC_WriteI8 (MkBufferStreamC_ARGS)
  Tcl: doc_mk_tcl_BufferStreamWriteI8 C-API
write a PRIMITIVE TYPE into the MkBufferStreamC
 
static OT_ProcRet tclmkkernel_MkBufferStreamC_WriteLONG (MkBufferStreamC_ARGS)
  Tcl: $bus WriteLONG val:long C-API
write the long native object into the MkBufferStreamC
 
static OT_ProcRet tclmkkernel_MkBufferStreamC_WriteL_END (MkBufferStreamC_ARGS)
  Tcl: $bus WriteL_END C-API
END write a list-item-type into the MkBufferStreamC
 
static OT_ProcRet tclmkkernel_MkBufferStreamC_WriteL_FLAT (MkBufferStreamC_ARGS)
  Tcl: $bus WriteL_FLAT bfl:MkBufferListC C-API
write a MkBufferListC FLAT into the MkBufferStreamC
 
static OT_ProcRet tclmkkernel_MkBufferStreamC_WriteL_START (MkBufferStreamC_ARGS)
  Tcl: $bus WriteL_START C-API
START write a list-item-type into the MkBufferStreamC
 
static OT_ProcRet tclmkkernel_MkBufferStreamC_WriteSTR (MkBufferStreamC_ARGS)
  Tcl: doc_mk_tcl_BufferStreamWriteSTR C-API
write a PRIMITIVE TYPE into the MkBufferStreamC
 

Detailed Description

MkBufferStreamC - various functions to write into a MkBufferStreamS

Write is done at the position of MkBufferStreamS::storage->cur. After write the cur is incemented with write-sizeof characters.

Function Documentation

◆ tclmkkernel_MkBufferStreamC_WriteBFL()

static OT_ProcRet tclmkkernel_MkBufferStreamC_WriteBFL ( MkBufferStreamC_ARGS )
static

Tcl: $bus WriteBFL bfl:MkBufferListC C-API
write a MkBufferListC into the MkBufferStreamC

Definition at line 873 of file MkBufferStreamC_tcl.c.

873 {
881 goto end;
882 error:
884 end:
886}
#define OT_SETUP_ONEARG(d)
#define OT_retObj_SET_Error
#define OT_CHECK_REQUIRED(val)
#define OT_retObj_SET_None
#define OT_retObj_RETURN
#define OT_CHECK_NOARGS
#define MkErrorC_Check(mng, PROC)
#define OT_SETUP_hdl
#define WriteBFL_doc
#define MkBufferListCreateTLS_T(name, num)
create a MkBufferListC instance as thread-local-storage …
#define MkBufferStreamWriteBFL(...)
#define MK_NULL_NO
flag, not allow NULL
#define OT_CHECK_BFLN(val, nullB)

◆ tclmkkernel_MkBufferStreamC_WriteBIN()

static OT_ProcRet tclmkkernel_MkBufferStreamC_WriteBIN ( MkBufferStreamC_ARGS )
static

Tcl: doc_mk_tcl_BufferStreamWriteBIN C-API
write a PRIMITIVE TYPE into the MkBufferStreamC

Definition at line 889 of file MkBufferStreamC_tcl.c.

889 {
892 MkBinaryR val = {0};
897 goto end;
898 error:
900 end:
902}
#define OT_CHECK__ME_REF_MkBinaryR(val)
#define WriteBIN_doc
#define MkBufferStreamWriteBIN(...)
binary data default format …

◆ tclmkkernel_MkBufferStreamC_WriteBOL()

static OT_ProcRet tclmkkernel_MkBufferStreamC_WriteBOL ( MkBufferStreamC_ARGS )
static

Tcl: doc_mk_tcl_BufferStreamWriteBOL C-API
write a PRIMITIVE TYPE into the MkBufferStreamC

Definition at line 905 of file MkBufferStreamC_tcl.c.

905 {
908 MK_BOL val = 0;
911 MkErrorC_Check(hdl,MkBufferStreamWriteBOL (hdl, (MK_BOL)(val?1:0)));
913 goto end;
914 error:
916 end:
918}
#define OT_CHECK_NB1(val)
#define WriteBOL_doc
#define MkBufferStreamWriteBOL(...)
unsigned char MK_BOL
1 byte boolean data-type

◆ tclmkkernel_MkBufferStreamC_WriteBUF()

static OT_ProcRet tclmkkernel_MkBufferStreamC_WriteBUF ( MkBufferStreamC_ARGS )
static

Tcl: $bus WriteBUF val:MkBufferC C-API
write a PRIMITIVE TYPE into the MkBufferStreamC

Definition at line 921 of file MkBufferStreamC_tcl.c.

921 {
924 MK_BUFN val = 0;
929 goto end;
930 error:
932 end:
934}
#define WriteBUF_doc
#define MkBufferStreamWriteBUF(...)
#define OT_CHECK_BUFN(val, nullB)
The ABSTRACT-CLASS used to store a native-type-data-item defined by PRIMITIVE TYPE …

◆ tclmkkernel_MkBufferStreamC_WriteBUS_FLAT()

static OT_ProcRet tclmkkernel_MkBufferStreamC_WriteBUS_FLAT ( MkBufferStreamC_ARGS )
static

Tcl: $bus WriteBUS_FLAT add:MkBufferStreamC C-API
write a MkBufferStreamC into the MkBufferStreamC

Definition at line 937 of file MkBufferStreamC_tcl.c.

937 {
940 MK_BUSN add = 0;
945 goto end;
946 error:
948 end:
950}
#define WriteBUS_FLAT_doc
#define MkBufferStreamWriteBUS_FLAT(...)
#define OT_CHECK_BUSN(val, nullB)
The ABSTRACT-CLASS MkBufferStreamS is used for package-based serialized IO …

◆ tclmkkernel_MkBufferStreamC_WriteDBL()

static OT_ProcRet tclmkkernel_MkBufferStreamC_WriteDBL ( MkBufferStreamC_ARGS )
static

Tcl: doc_mk_tcl_BufferStreamWriteDBL C-API
write a PRIMITIVE TYPE into the MkBufferStreamC

Definition at line 953 of file MkBufferStreamC_tcl.c.

953 {
956 MK_DBL val = 0;
961 goto end;
962 error:
964 end:
966}
#define OT_CHECK_NF8(val)
#define WriteDBL_doc
#define MkBufferStreamWriteDBL(...)
double MK_DBL
8 byte double data-type

◆ tclmkkernel_MkBufferStreamC_WriteFLT()

static OT_ProcRet tclmkkernel_MkBufferStreamC_WriteFLT ( MkBufferStreamC_ARGS )
static

Tcl: doc_mk_tcl_BufferStreamWriteFLT C-API
write a PRIMITIVE TYPE into the MkBufferStreamC

Definition at line 969 of file MkBufferStreamC_tcl.c.

969 {
972 MK_FLT val = 0;
977 goto end;
978 error:
980 end:
982}
#define OT_CHECK_NF4(val)
#define WriteFLT_doc
#define MkBufferStreamWriteFLT(...)
float MK_FLT
4 byte float data-type

◆ tclmkkernel_MkBufferStreamC_WriteHDL()

static OT_ProcRet tclmkkernel_MkBufferStreamC_WriteHDL ( MkBufferStreamC_ARGS )
static

Tcl: $bus WriteHDL val:int32 C-API
write the handle into the MkBufferStreamC

Definition at line 985 of file MkBufferStreamC_tcl.c.

985 {
988 MK_I32 val = 0;
993 goto end;
994 error:
996 end:
998}
#define OT_CHECK_NI4(val)
#define WriteHDL_doc
#define MkBufferStreamWriteHDL(...)
signed int MK_I32
4 byte integer data-type

◆ tclmkkernel_MkBufferStreamC_WriteI32()

static OT_ProcRet tclmkkernel_MkBufferStreamC_WriteI32 ( MkBufferStreamC_ARGS )
static

Tcl: doc_mk_tcl_BufferStreamWriteI32 C-API
write a PRIMITIVE TYPE into the MkBufferStreamC

Definition at line 1001 of file MkBufferStreamC_tcl.c.

1001 {
1004 MK_I32 val = 0;
1007 MkErrorC_Check(hdl,MkBufferStreamWriteI32 (hdl, val));
1009 goto end;
1010 error:
1012 end:
1014}
#define WriteI32_doc
#define MkBufferStreamWriteI32(...)

◆ tclmkkernel_MkBufferStreamC_WriteI64()

static OT_ProcRet tclmkkernel_MkBufferStreamC_WriteI64 ( MkBufferStreamC_ARGS )
static

Tcl: doc_mk_tcl_BufferStreamWriteI64 C-API
write a PRIMITIVE TYPE into the MkBufferStreamC

Definition at line 1017 of file MkBufferStreamC_tcl.c.

1017 {
1020 MK_I64 val = 0;
1023 MkErrorC_Check(hdl,MkBufferStreamWriteI64 (hdl, val));
1025 goto end;
1026 error:
1028 end:
1030}
#define OT_CHECK_NI8(val)
#define WriteI64_doc
#define MkBufferStreamWriteI64(...)
signed long long MK_I64
8 byte wide integer data-type

◆ tclmkkernel_MkBufferStreamC_WriteI8()

static OT_ProcRet tclmkkernel_MkBufferStreamC_WriteI8 ( MkBufferStreamC_ARGS )
static

Tcl: doc_mk_tcl_BufferStreamWriteI8 C-API
write a PRIMITIVE TYPE into the MkBufferStreamC

Definition at line 1033 of file MkBufferStreamC_tcl.c.

1033 {
1036 MK_I8 val = 0;
1039 MkErrorC_Check(hdl,MkBufferStreamWriteI8 (hdl, (MK_I8)(val)));
1041 goto end;
1042 error:
1044 end:
1046}
#define OT_CHECK_NI1(val)
#define WriteI8_doc
#define MkBufferStreamWriteI8(...)
signed char MK_I8
1 byte byte data-type

◆ tclmkkernel_MkBufferStreamC_WriteL_END()

static OT_ProcRet tclmkkernel_MkBufferStreamC_WriteL_END ( MkBufferStreamC_ARGS )
static

Tcl: $bus WriteL_END C-API
END write a list-item-type into the MkBufferStreamC

Definition at line 1065 of file MkBufferStreamC_tcl.c.

1065 {
1071 goto end;
1072 error:
1074 end:
1076}
#define OT_SETUP_NOARG(d)
#define WriteL_END_doc
#define MkBufferStreamWriteL_END(...)

◆ tclmkkernel_MkBufferStreamC_WriteL_FLAT()

static OT_ProcRet tclmkkernel_MkBufferStreamC_WriteL_FLAT ( MkBufferStreamC_ARGS )
static

Tcl: $bus WriteL_FLAT bfl:MkBufferListC C-API
write a MkBufferListC FLAT into the MkBufferStreamC

Definition at line 1079 of file MkBufferStreamC_tcl.c.

1079 {
1087 goto end;
1088 error:
1090 end:
1092}
#define WriteL_FLAT_doc
#define MkBufferStreamWriteL_FLAT(...)
#define OT_CHECK_BFL(val, nullB)

◆ tclmkkernel_MkBufferStreamC_WriteL_START()

static OT_ProcRet tclmkkernel_MkBufferStreamC_WriteL_START ( MkBufferStreamC_ARGS )
static

Tcl: $bus WriteL_START C-API
START write a list-item-type into the MkBufferStreamC

Definition at line 1095 of file MkBufferStreamC_tcl.c.

1095 {
1101 goto end;
1102 error:
1104 end:
1106}
#define WriteL_START_doc
#define MkBufferStreamWriteL_START(...)

◆ tclmkkernel_MkBufferStreamC_WriteLONG()

static OT_ProcRet tclmkkernel_MkBufferStreamC_WriteLONG ( MkBufferStreamC_ARGS )
static

Tcl: $bus WriteLONG val:long C-API
write the long native object into the MkBufferStreamC

Definition at line 1049 of file MkBufferStreamC_tcl.c.

1049 {
1052 MK_LONG val = 0;
1057 goto end;
1058 error:
1060 end:
1062}
#define OT_CHECK_NIL(val)
#define WriteLONG_doc
#define MkBufferStreamWriteLONG(...)
long MK_LONG
4/8 byte long data-type

◆ tclmkkernel_MkBufferStreamC_WriteSTR()

static OT_ProcRet tclmkkernel_MkBufferStreamC_WriteSTR ( MkBufferStreamC_ARGS )
static

Tcl: doc_mk_tcl_BufferStreamWriteSTR C-API
write a PRIMITIVE TYPE into the MkBufferStreamC

Definition at line 1109 of file MkBufferStreamC_tcl.c.

1109 {
1112 MK_STRN val = 0;
1114 MK_NUM len = -1;
1117 MkErrorC_Check(hdl,MkBufferStreamWriteSTR (hdl, val, len));
1119 goto end;
1120 error:
1122 end:
1124}
#define OT_SETUP_VARARGS(min, max, d)
#define OT_CHECK_OPTIONAL(val)
#define OT_CHECK_STRN(val)
#define WriteSTR_doc
#define MkBufferStreamWriteSTR(...)
int32_t MK_NUM
array size data-type ('num' items in array …
const MK_STRB * MK_STRN
constant string pointer data-type